mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
Merge a1601c1d66
into 7123f0b1e6
This commit is contained in:
commit
5851672ec8
|
@ -72,7 +72,7 @@ class SimpleRouter(BaseRouter):
|
|||
routes = [
|
||||
# List route.
|
||||
Route(
|
||||
url=r'^{prefix}/$',
|
||||
url=r'^{prefix}$',
|
||||
mapping={
|
||||
'get': 'list',
|
||||
'post': 'create'
|
||||
|
@ -82,7 +82,7 @@ class SimpleRouter(BaseRouter):
|
|||
),
|
||||
# Detail route.
|
||||
Route(
|
||||
url=r'^{prefix}/{lookup}/$',
|
||||
url=r'^{prefix}/{lookup}$',
|
||||
mapping={
|
||||
'get': 'retrieve',
|
||||
'put': 'update',
|
||||
|
@ -95,7 +95,7 @@ class SimpleRouter(BaseRouter):
|
|||
# Dynamically generated routes.
|
||||
# Generated using @action or @link decorators on methods of the viewset.
|
||||
Route(
|
||||
url=r'^{prefix}/{lookup}/{methodname}/$',
|
||||
url=r'^{prefix}/{lookup}/{methodname}$',
|
||||
mapping={
|
||||
'{httpmethod}': '{methodname}',
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user