mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 22:49:21 +02:00
re-export identity and cors middleware
This commit is contained in:
@ -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())
|
||||
/// );
|
||||
/// }
|
||||
/// ```
|
||||
|
@ -11,5 +11,16 @@ pub use self::defaultheaders::DefaultHeaders;
|
||||
pub use self::logger::Logger;
|
||||
pub use self::normalize::NormalizePath;
|
||||
|
||||
//
|
||||
// use actix_cors as cors;
|
||||
#[cfg(feature = "deprecated")]
|
||||
#[deprecated(
|
||||
since = "1.0.1",
|
||||
note = "please use `actix_cors` instead. support will be removed in actix-web 1.0.2"
|
||||
)]
|
||||
pub use actix_cors as cors;
|
||||
|
||||
#[cfg(feature = "deprecated")]
|
||||
#[deprecated(
|
||||
since = "1.0.1",
|
||||
note = "please use `actix_identity` instead. support will be removed in actix-web 1.0.2"
|
||||
)]
|
||||
pub use actix_identity as identity;
|
||||
|
Reference in New Issue
Block a user