diff --git a/api/src/main.rs b/api/src/main.rs index f429874..bfbaf29 100644 --- a/api/src/main.rs +++ b/api/src/main.rs @@ -57,12 +57,7 @@ async fn main() -> Result<(), rocket::Error> { )); - let cors = CorsOptions::default() - .to_cors() - .expect("Failed to create CORS fairing"); - rocket::custom(figment) - .attach(cors) .manage(pool) .mount("/api", routes![ register, @@ -81,8 +76,8 @@ async fn main() -> Result<(), rocket::Error> { update_quota, all_options, ]) - //.mount("/", FileServer::from("/app/static").rank(10)) - //.register("/", catchers![not_found]) + .mount("/", FileServer::from("./static").rank(10)) + .register("/", catchers![not_found]) .launch() .await?;