mirror of
https://github.com/actix/actix-web.git
synced 2024-11-25 19:11:10 +00:00
parent
f220719fae
commit
056de320f0
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ type Guards = Vec<Box<dyn Guard>>;
|
|||
/// use actix_web::{web, App, HttpResponse};
|
||||
///
|
||||
/// let app = App::new().service(
|
||||
/// web::scope("/{project_id}/")
|
||||
/// web::scope("/{project_id}")
|
||||
/// .service(web::resource("/path1").to(|| async { "OK" }))
|
||||
/// .service(web::resource("/path2").route(web::get().to(|| HttpResponse::Ok())))
|
||||
/// .service(web::resource("/path3").route(web::head().to(HttpResponse::MethodNotAllowed)))
|
||||
|
|
Loading…
Reference in a new issue