mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
Use master branch, ignore local db, and use CORS.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user