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:
parent
0805f2b1c6
commit
fad4426388
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user