forked from jmug/stoatchat
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
|
||||
|
||||
Reference in New Issue
Block a user