This commit is contained in:
parent
97f068d754
commit
6ce7384c8a
1 changed files with 5 additions and 3 deletions
|
@ -49,9 +49,11 @@ async fn launch() -> _ {
|
|||
|
||||
let library = lib.clone();
|
||||
|
||||
library
|
||||
.scan_dir(&Path::new(&dir_path.clone()).to_path_buf())
|
||||
.await;
|
||||
let handle = tokio::spawn(async move {
|
||||
library
|
||||
.scan_dir(&Path::new(&dir_path.clone()).to_path_buf())
|
||||
.await;
|
||||
});
|
||||
|
||||
let cors = rocket_cors::CorsOptions {
|
||||
allowed_origins: rocket_cors::AllowedOrigins::all(),
|
||||
|
|
Loading…
Add table
Reference in a new issue