mirror of
https://github.com/actix/actix-website
synced 2024-11-27 18:12:57 +01:00
Small grammar fix to url-dispatch.md
Also, this is good stuff. 👍
This commit is contained in:
parent
bf8faa455d
commit
59ed9c2b81
@ -33,7 +33,7 @@ for the same path, in that case, multiple routes register for the same resource
|
|||||||
{{< include-example example="url-dispatch" section="main" >}}
|
{{< include-example example="url-dispatch" section="main" >}}
|
||||||
|
|
||||||
While *App::route()* provides simple way of registering routes, to access
|
While *App::route()* provides simple way of registering routes, to access
|
||||||
complete resource configuration, different method has to be used.
|
complete resource configuration, a different method has to be used.
|
||||||
The [*App::resource()*](../../actix-web/actix_web/struct.App.html#method.resource) method
|
The [*App::resource()*](../../actix-web/actix_web/struct.App.html#method.resource) method
|
||||||
adds a single resource to application routing table. This method accepts a *path pattern*
|
adds a single resource to application routing table. This method accepts a *path pattern*
|
||||||
and a resource configuration function.
|
and a resource configuration function.
|
||||||
|
Loading…
Reference in New Issue
Block a user