diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2018-11-26 12:33:37 +0100 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2018-11-26 12:36:07 +0100 |
commit | 63636d00ca56ee37f9cb9db3fece81d615e21a1a (patch) | |
tree | 970f86c8ed2abd32d6af964b0f7cfb34f9bd8d45 /src/auth_handler/urls.rs | |
parent | 20242a8d3cc2e9a70812f34fcc50c170a654f6c6 (diff) | |
download | nginx-auth-totp-63636d00ca56ee37f9cb9db3fece81d615e21a1a.tar.gz nginx-auth-totp-63636d00ca56ee37f9cb9db3fece81d615e21a1a.zip |
Refactor html views
Diffstat (limited to 'src/auth_handler/urls.rs')
-rw-r--r-- | src/auth_handler/urls.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/auth_handler/urls.rs b/src/auth_handler/urls.rs deleted file mode 100644 index fa7c76f..0000000 --- a/src/auth_handler/urls.rs +++ /dev/null @@ -1,18 +0,0 @@ -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 -}
\ No newline at end of file |