blob: fa7c76fc67dbb1926aa3043968fda177b23c2f8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use ::router;
#[derive(Clone, Copy)]
pub(in auth_handler) enum Route {
Login,
Logout,
Info,
Check
}
pub(in auth_handler) fn create_routing_table() -> router::RoutingTable<Route> {
let mut r = router::RoutingTable::new();
r.insert("/info", Route::Info);
r.insert("/login", Route::Login);
r.insert("/logout", Route::Logout);
r.insert("/check", Route::Check);
r
}
|