auric-runtime 0.1.5

Runtime for the Ember-inspired Auric SPA framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::RouteDef;
use anyhow::Result;

#[derive(Clone)]
pub struct Router {}

impl Router {
    pub fn new(_route_defs: Vec<RouteDef>) -> Self {
        Self {}
    }

    pub fn init(&self) -> Result<()> {
        web_sys::console::log_1(&"Initialized router".into());
        Ok(())
    }
}