mirror of
https://github.com/Jackzmc/storage.git
synced 2025-05-08 03:23:21 +00:00
implement config + Pull SSO data from config
This commit is contained in:
parent
cab39de312
commit
e13f080d91
17 changed files with 440 additions and 209 deletions
|
@ -5,10 +5,11 @@ use rocket_session_store::{Session, SessionResult};
|
|||
use serde::Serialize;
|
||||
use crate::models::user::UserModel;
|
||||
use crate::{GlobalMetadata, SessionData};
|
||||
use crate::consts::APP_METADATA;
|
||||
|
||||
#[get("/help/about")]
|
||||
pub fn about(route: &Route, meta: &State<GlobalMetadata>) -> Template {
|
||||
Template::render("about", context! { route: route.uri.path(), meta: meta.inner() })
|
||||
pub fn about(route: &Route) -> Template {
|
||||
Template::render("about", context! { route: route.uri.path(), meta: APP_METADATA.clone() })
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue