Update routers.md

Since no extra `url_path` is given, `url_path` should be same with the action name
This commit is contained in:
Çağıl 2018-06-20 16:52:45 +01:00 committed by GitHub
parent feffa109a8
commit e72f520c2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,7 +293,7 @@ The following mappings would be generated...
<tr><th>URL</th><th>HTTP Method</th><th>Action</th><th>URL Name</th></tr> <tr><th>URL</th><th>HTTP Method</th><th>Action</th><th>URL Name</th></tr>
<tr><td>/users</td><td>GET</td><td>list</td><td>user-list</td></tr> <tr><td>/users</td><td>GET</td><td>list</td><td>user-list</td></tr>
<tr><td>/users/{username}</td><td>GET</td><td>retrieve</td><td>user-detail</td></tr> <tr><td>/users/{username}</td><td>GET</td><td>retrieve</td><td>user-detail</td></tr>
<tr><td>/users/{username}/group-names</td><td>GET</td><td>group_names</td><td>user-group-names</td></tr> <tr><td>/users/{username}/group_names</td><td>GET</td><td>group_names</td><td>user-group-names</td></tr>
</table> </table>
For another example of setting the `.routes` attribute, see the source code for the `SimpleRouter` class. For another example of setting the `.routes` attribute, see the source code for the `SimpleRouter` class.