mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-27 17:22:57 +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
|
// set preflight cache TTL
|
||||||
.max_age(3600),
|
.max_age(3600),
|
||||||
)
|
)
|
||||||
.route(
|
.default_service(web::to(|| async { "Hello, cross-origin world!" }))
|
||||||
"/{n}/init",
|
|
||||||
web::to(|path: web::Path<String>| async move { path.into_inner() }),
|
|
||||||
)
|
|
||||||
.default_service(web::to(|| async { "Hello world!" }))
|
|
||||||
})
|
})
|
||||||
.bind("127.0.0.1:8080")?
|
.bind("127.0.0.1:8080")?
|
||||||
.run()
|
.run()
|
||||||
|
Loading…
Reference in New Issue
Block a user