Use master branch, ignore local db, and use CORS.

This commit is contained in:
Paul Makles
2020-12-28 13:40:37 +00:00
parent 6cfec0ee08
commit d171374aa1
5 changed files with 10 additions and 7 deletions

View File

@@ -36,9 +36,11 @@ async fn main() {
..Default::default()
}
.to_cors()
.unwrap();
.expect("Failed to create CORS.");
routes::mount(rocket::ignite())
.mount("/", rocket_cors::catch_all_options_routes())
.manage(cors.clone())
.attach(cors)
.launch()
.await

View File

@@ -7,7 +7,7 @@ use mongodb::bson::doc;
#[get("/")]
pub async fn root() -> Response {
Response::Success(json!({
"revolt": "0.2.11",
"revolt": "0.3.0-alpha",
"features": {
"registration": !*DISABLE_REGISTRATION,
"captcha": {