Implement the video adapter to retrieve the root folder content.
This commit is contained in:
@@ -12,7 +12,6 @@ use std::io::{BufReader, Error};
|
||||
use std::path::Path;
|
||||
use std::sync::Arc;
|
||||
use lumiere_exposition::init;
|
||||
use lumiere_exposition::video::video_format_content_type_mapper::map_to_content_type;
|
||||
use lumiere_infrastructure::video::video_format_detector::get_content_type;
|
||||
use tokio_cron_scheduler::{Job, JobScheduler};
|
||||
|
||||
@@ -35,6 +34,7 @@ async fn main() -> std::io::Result<()> {
|
||||
let server = HttpServer::new(
|
||||
move || App::new().configure(init)
|
||||
.app_data(web::Data::new(Arc::new(application_context.user_service.clone())))
|
||||
.app_data(web::Data::new(Arc::new(application_context.video_service.clone())))
|
||||
)
|
||||
.bind("0.0.0.0:19000")
|
||||
// .bind_rustls_0_23(("0.0.0.0", 19000), tls_config)
|
||||
|
||||
Reference in New Issue
Block a user