From fad44263882fc067dbef70cafd0c570196e86ea8 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Mon, 13 Dec 2021 02:50:22 +0000 Subject: [PATCH] revert cors example --- actix-cors/examples/cors.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/actix-cors/examples/cors.rs b/actix-cors/examples/cors.rs index 3b9a39df6..343ddf425 100644 --- a/actix-cors/examples/cors.rs +++ b/actix-cors/examples/cors.rs @@ -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| 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()