diff options
author | metamuffin <metamuffin@disroot.org> | 2025-05-13 14:57:19 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-05-13 14:57:19 +0200 |
commit | 09f86ee5b25fbddf667ef98a22eaa076cedba23c (patch) | |
tree | 2abca01286840cb918acbbdc3735f414fd26595e /server/src/helper/mod.rs | |
parent | 55434f87ff252c784e5e00b4775b9555da31ebb0 (diff) | |
download | jellything-09f86ee5b25fbddf667ef98a22eaa076cedba23c.tar jellything-09f86ee5b25fbddf667ef98a22eaa076cedba23c.tar.bz2 jellything-09f86ee5b25fbddf667ef98a22eaa076cedba23c.tar.zst |
move AcceptJson and AcceptLanguage guard in preperation to remove them
Diffstat (limited to 'server/src/helper/mod.rs')
-rw-r--r-- | server/src/helper/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/server/src/helper/mod.rs b/server/src/helper/mod.rs index f068cbc..4b0644c 100644 --- a/server/src/helper/mod.rs +++ b/server/src/helper/mod.rs @@ -3,11 +3,23 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin <metamuffin.org> */ +pub mod accept; pub mod cache; pub mod cors; pub mod filter_sort; +pub mod language; pub mod node_id; pub mod session; +use accept::Accept; +use jellylogic::session::Session; +use jellyui::locale::Language; + #[derive(Debug, Clone, Copy, Default)] pub struct A<T>(pub T); + +pub struct RequestInfo { + pub lang: Language, + pub accept: Accept, + pub session: Session, +} |