aboutsummaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-02-16 17:50:57 +0100
committermetamuffin <metamuffin@disroot.org>2026-02-16 17:50:57 +0100
commitbe4af57d75cc1e233b4714b18198fb7bde49464d (patch)
tree6e529e748fc1d5c212dcf8033c8158630ca4f4d6 /server/src/main.rs
parentbb1822e3e68fe6f699102bfc1659731bdbac1a40 (diff)
downloadjellything-be4af57d75cc1e233b4714b18198fb7bde49464d.tar
jellything-be4af57d75cc1e233b4714b18198fb7bde49464d.tar.bz2
jellything-be4af57d75cc1e233b4714b18198fb7bde49464d.tar.zst
refactor ui responder; add admin import pages
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index 2bb0d61..fe55ef6 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -32,6 +32,7 @@ pub mod request_info;
pub mod responders;
pub mod routes;
pub mod ui;
+pub mod ui_responder;
#[rocket::main]
async fn main() {
@@ -57,7 +58,7 @@ async fn main() {
pub struct State {
pub config: Config,
- pub cache: Cache,
+ pub cache: Arc<Cache>,
pub database: Arc<dyn Database>,
pub session_key: SessionKey,
}
@@ -86,7 +87,7 @@ pub fn create_state() -> Result<Arc<State>> {
// let db_storage = jellykv::memory::new();
let state = Arc::new(State {
- cache: Cache::new(Box::new(cache_storage), config.max_memory_cache_size),
+ cache: Cache::new(Box::new(cache_storage), config.max_memory_cache_size).into(),
database: Arc::new(db_storage),
session_key: SessionKey::parse(&config.session_key)?,
config,