blob: bec7c775c7c5c9ca1182fc8f8a2a439cf854edbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
mod routing;
use utoipa_axum::{router::OpenApiRouter, routes};
use crate::state::AppHandle;
pub fn router(store: AppHandle) -> OpenApiRouter {
OpenApiRouter::new()
.routes(routes!(
routing::get_active::active_routing,
routing::post_routing::post_routing
))
.with_state(store)
}
|