now safes the cookies for the requester

This commit is contained in:
Simon
2025-08-21 10:18:06 +00:00
parent c05991ee23
commit 59d30695e9
8 changed files with 465 additions and 24 deletions

View File

@@ -38,6 +38,8 @@ async fn main() -> std::io::Result<()> {
.build(manager)
.expect("Failed to create pool.");
let requester = util::requester::Requester::new();
let cache: util::cache::VideoCache = crate::util::cache::VideoCache::new();
@@ -46,6 +48,7 @@ async fn main() -> std::io::Result<()> {
web::App::new()
.state(pool.clone())
.state(cache.clone())
.state(requester.clone())
.wrap(web::middleware::Logger::default())
.service(web::scope("/api").configure(api::config))
.service(