auric-runtime 0.1.5

Runtime for the Ember-inspired Auric SPA framework
Documentation
use crate::Config;
use crate::routing::Route;
use anyhow::Result;
use async_trait::async_trait;
use serde_json::{Value, json};

#[derive(Default)]
pub struct DefaultRoute {}

#[async_trait]
impl Route for DefaultRoute {
    fn init(&mut self, _config: &Config) -> Result<()> {
        Ok(())
    }

    async fn model(&self, _params: &[Value]) -> Result<Value> {
        Ok(json!({}))
    }
}