Merge branch 'main' of https://git.mercurio.moe/Mercury/litecloud
This commit is contained in:
commit
315746852b
|
@ -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)
|
rocket::custom(figment)
|
||||||
.attach(cors)
|
|
||||||
.manage(pool)
|
.manage(pool)
|
||||||
.mount("/api", routes![
|
.mount("/api", routes![
|
||||||
register,
|
register,
|
||||||
|
@ -81,8 +76,8 @@ async fn main() -> Result<(), rocket::Error> {
|
||||||
update_quota,
|
update_quota,
|
||||||
all_options,
|
all_options,
|
||||||
])
|
])
|
||||||
//.mount("/", FileServer::from("/app/static").rank(10))
|
.mount("/", FileServer::from("./static").rank(10))
|
||||||
//.register("/", catchers![not_found])
|
.register("/", catchers![not_found])
|
||||||
.launch()
|
.launch()
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue