add application Preferences
This commit is contained in:
parent
53786a7a4a
commit
709ee8c454
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ class CRUDRouter(DefaultRouter):
|
||||||
),
|
),
|
||||||
# Detail route.
|
# Detail route.
|
||||||
Route(
|
Route(
|
||||||
url=r'^{prefix}/item{trailing_slash}$',
|
url=r'^{prefix}{trailing_slash}$',
|
||||||
mapping={
|
mapping={
|
||||||
'get': 'retrieve',
|
'get': 'retrieve',
|
||||||
'put': 'update',
|
'put': 'update',
|
||||||
|
|
@ -40,7 +40,7 @@ class CRUDRouter(DefaultRouter):
|
||||||
# Dynamically generated detail routes. Generated using
|
# Dynamically generated detail routes. Generated using
|
||||||
# @action(detail=True) decorator on methods of the viewset.
|
# @action(detail=True) decorator on methods of the viewset.
|
||||||
DynamicRoute(
|
DynamicRoute(
|
||||||
url=r'^{prefix}/item/{url_path}{trailing_slash}$',
|
url=r'^{prefix}/{url_path}{trailing_slash}$',
|
||||||
name='{basename}-{url_name}',
|
name='{basename}-{url_name}',
|
||||||
detail=True,
|
detail=True,
|
||||||
initkwargs={}
|
initkwargs={}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue