-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds `map` function for `ServiceConfig` to allow defining normal services to `actix_web::web::ServiceConfig` via `ServiceConfig` in similar fashion to `Scope` and `UtoipaApp`. This example demonstrates the `map` functionality of `ServiceConfig` to allow direct access to underlying `actix_web::web::ServiceConfig`. ```rust fn config(cfg: &mut service_config::ServiceConfig) { cfg.service(handler3) .map(|config| config.service(normal_service)); } ``` Closes #1173
- Loading branch information
Showing
4 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters