Add LoggedInUser extractor

This commit is contained in:
selfhoster selfhoster 2023-08-23 12:33:06 +00:00
commit f5946e5ea0
5 changed files with 81 additions and 15 deletions

View file

@ -9,8 +9,6 @@ use crate::state::RoutableAppState;
mod index;
mod login;
pub const COOKIE_NAME: &'static str = "yunohost.ssowat";
/// Build a router for the application, in a specific subpath eg `/yunohost/sso/`
pub fn router(subpath: Option<String>, state: RoutableAppState) -> Router {
let app = Router::new()
@ -24,4 +22,4 @@ pub fn router(subpath: Option<String>, state: RoutableAppState) -> Router {
} else {
app
}
}
}