1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-23 15:51:06 +01:00

revert cors example

This commit is contained in:
Rob Ede 2021-12-13 02:50:22 +00:00
parent 0805f2b1c6
commit fad4426388
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -38,11 +38,7 @@ async fn main() -> std::io::Result<()> {
// set preflight cache TTL
.max_age(3600),
)
.route(
"/{n}/init",
web::to(|path: web::Path<String>| async move { path.into_inner() }),
)
.default_service(web::to(|| async { "Hello world!" }))
.default_service(web::to(|| async { "Hello, cross-origin world!" }))
})
.bind("127.0.0.1:8080")?
.run()