1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02:00

re-export identity and cors middleware

This commit is contained in:
Nikolay Kim
2019-06-15 21:47:06 +06:00
parent cd323f2ff1
commit d7ec241fd0
4 changed files with 26 additions and 17 deletions

View File

@@ -225,7 +225,6 @@ where
/// It is also possible to use static files as default service.
///
/// ```rust
/// use actix_files::Files;
/// use actix_web::{web, App, HttpResponse};
///
/// fn main() {
@@ -233,7 +232,7 @@ where
/// .service(
/// web::resource("/index.html").to(|| HttpResponse::Ok()))
/// .default_service(
/// Files::new("", "./static")
/// web::to(|| HttpResponse::NotFound())
/// );
/// }
/// ```