axum-rh 0.2.8

A helper library for the axum router
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use axum::Router;

pub struct Routers<T> {
    pub open_router: axum::Router<T>,
    pub protected_router: axum::Router<T>,
}
pub trait RouterHelper<T> {
    fn load_routers() -> Routers<T> {
        panic!("load_routers() not implemented");
    }
    fn load_routers_with_auth() -> Router<T> {
        panic!("load_routers_with_auth() not implemented");
    }
}