Start authorization route

This commit is contained in:
selfhoster selfhoster 2023-08-26 12:39:11 +00:00
commit bd4144a5ba
7 changed files with 128 additions and 3 deletions

View file

@ -6,6 +6,7 @@ use tower_cookies::CookieManagerLayer;
use crate::state::RoutableAppState;
mod authorize;
mod index;
mod login;
mod logout;
@ -16,6 +17,7 @@ pub fn router(subpath: Option<String>, state: RoutableAppState) -> Router {
.route("/", get(index::route))
.route("/login/", post(login::route))
.route("/logout/", get(logout::route))
.route("/authorize/", get(authorize::route))
.layer(CookieManagerLayer::new())
.with_state(state);
if let Some(p) = subpath {