implement config + Pull SSO data from config

This commit is contained in:
Jackzie 2025-04-20 20:56:33 -05:00
parent cab39de312
commit e13f080d91
17 changed files with 440 additions and 209 deletions

View file

@ -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() })
}