use auric_runtime::routing::{Path, Route, RouteDef};
use auric_runtime::{AuricRoute, Context};
use auric_runtime::async_trait::async_trait;
use serde_json::{json, Value};
#[derive(AuricRoute, Debug)]
#[route("{{path}}")]
pub struct {{structName}} {}
#[async_trait]
impl Route for {{structName}} {
async fn model(&self, _ctx: &impl Context, _params: &Path<RouteDef>) -> anyhow::Result<Value> {
Ok(json!({}))
}
fn name(&self) -> &'static str {
"{{name}}"
}
}