mirror of https://github.com/fafhrd91/actix-web
Scope: Switch to ServiceConfig in doc
This commit is contained in:
parent
53d254464a
commit
e6bc864e05
|
@ -98,7 +98,7 @@ impl Scope {
|
|||
/// use actix_web::{web, middleware, App, HttpResponse};
|
||||
///
|
||||
/// // this function could be located in different module
|
||||
/// fn config(cfg: &mut web::ScopeConfig) {
|
||||
/// fn config(cfg: &mut web::ServiceConfig) {
|
||||
/// cfg.service(web::resource("/test")
|
||||
/// .route(web::get().to(|| HttpResponse::Ok()))
|
||||
/// .route(web::head().to(|| HttpResponse::MethodNotAllowed()))
|
||||
|
|
Loading…
Reference in New Issue