mirror of https://github.com/fafhrd91/actix-web
Export actix_web::dev::ServiceFactory
Enables:
```
pub fn create_app() -> App<
impl ServiceFactory<
ServiceRequest,
Response = ServiceResponse<AnyBody>,
Config = (),
InitError = (),
Error = Error,
>,
AnyBody,
> {
App::new()
.wrap(Compat::new(Logger::default())
.route("/", web::to(|| async { "hello" }))
}
```
This commit is contained in:
parent
2504c2ecb0
commit
749b670949
|
|
@ -29,7 +29,7 @@ pub use actix_http::{Extensions, Payload, PayloadStream, RequestHead, ResponseHe
|
|||
pub use actix_router::{Path, ResourceDef, ResourcePath, Url};
|
||||
pub use actix_server::Server;
|
||||
pub use actix_service::{
|
||||
always_ready, fn_factory, fn_service, forward_ready, Service, Transform,
|
||||
always_ready, fn_factory, fn_service, forward_ready, Service, ServiceFactory, Transform
|
||||
};
|
||||
|
||||
pub(crate) fn insert_slash(mut patterns: Vec<String>) -> Vec<String> {
|
||||
|
|
|
|||
Loading…
Reference in New Issue