now safes the cookies for the requester
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user