mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 16:02:59 +01:00
Merge pull request #184 from ivanovaleksey/patch-1
Fix route in App::resource example
This commit is contained in:
commit
5f3a7a6a52
@ -314,7 +314,7 @@ where
|
|||||||
///
|
///
|
||||||
/// fn main() {
|
/// fn main() {
|
||||||
/// let app = App::new()
|
/// let app = App::new()
|
||||||
/// .resource("/test", |r| {
|
/// .resource("/users/{userid}/{friend}", |r| {
|
||||||
/// r.get().f(|_| HttpResponse::Ok());
|
/// r.get().f(|_| HttpResponse::Ok());
|
||||||
/// r.head().f(|_| HttpResponse::MethodNotAllowed());
|
/// r.head().f(|_| HttpResponse::MethodNotAllowed());
|
||||||
/// });
|
/// });
|
||||||
|
Loading…
Reference in New Issue
Block a user