Remove old reimplementation of routes.
parent
3a08114eea
commit
4b7b2727a3
|
@ -2,20 +2,9 @@
|
||||||
|
|
||||||
from rest_framework import routers
|
from rest_framework import routers
|
||||||
|
|
||||||
# Special router for actions.
|
|
||||||
actions_router = routers.Route(url=r'^{prefix}/{methodname}{trailing_slash}$',
|
|
||||||
mapping={'{httpmethod}': '{methodname}'},
|
|
||||||
name='{basename}-{methodnamehyphen}',
|
|
||||||
initkwargs={})
|
|
||||||
|
|
||||||
|
|
||||||
class DefaultRouter(routers.DefaultRouter):
|
class DefaultRouter(routers.DefaultRouter):
|
||||||
routes = [
|
pass
|
||||||
routers.DefaultRouter.routes[0],
|
|
||||||
actions_router,
|
|
||||||
routers.DefaultRouter.routes[2],
|
|
||||||
routers.DefaultRouter.routes[1]
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
__all__ = ["DefaultRouter"]
|
__all__ = ["DefaultRouter"]
|
||||||
|
|
Loading…
Reference in New Issue