allow post in routing api
This commit is contained in:
parent
e00400a66f
commit
69dab03148
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ from c3nav.routing.router import Router
|
|||
|
||||
|
||||
class RoutingViewSet(ViewSet):
|
||||
@list_route(methods=['get'])
|
||||
@list_route(methods=['get', 'post'])
|
||||
def route(self, request, *args, **kwargs):
|
||||
params = request.POST if request.method == 'POST' else request.GET
|
||||
form = RouteForm(params, request=request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue