use auric_runtime::routing::{Path, Route, RouteDef};
use auric_runtime::{AuricRoute, Context};
use auric_runtime::{async_trait::async_trait, bson};
#[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<bson::Document> {
Ok(bson::doc! {})
}
fn name(&self) -> &'static str {
"{{name}}"
}
}