Skip to main content

auric_runtime/routing/
router.rs

1use super::RouteDef;
2use anyhow::Result;
3
4#[derive(Clone)]
5pub struct Router {}
6
7impl Router {
8    pub fn new(_route_defs: Vec<RouteDef>) -> Self {
9        Self {}
10    }
11
12    pub fn init(&self) -> Result<()> {
13        web_sys::console::log_1(&"Initialized router".into());
14        Ok(())
15    }
16}