From 69dab031483c83df0dc6b253bac580c80c67faf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Mon, 27 Nov 2017 16:43:41 +0100 Subject: [PATCH] allow post in routing api --- src/c3nav/routing/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/c3nav/routing/api.py b/src/c3nav/routing/api.py index 8b777c9c..f8266635 100644 --- a/src/c3nav/routing/api.py +++ b/src/c3nav/routing/api.py @@ -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)