Start authorization route
This commit is contained in:
parent
1647ca3838
commit
bd4144a5ba
7 changed files with 128 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue