From 43b90b299a25fbd386feec00b7bd0ae430ae8e9a Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Wed, 25 Apr 2018 08:38:35 +0300 Subject: [PATCH] revert api doc url to new style --- api/v1/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/urls.py b/api/v1/urls.py index 1691882c..455adb25 100644 --- a/api/v1/urls.py +++ b/api/v1/urls.py @@ -60,7 +60,7 @@ schema_view = get_schema_view( urlpatterns = [ path('api-token-auth/', ObtainToken.as_view(), name='api-token-auth'), path('configs/', ConfigViewSet.as_view(), name='configs'), - path('swagger(.json|.yaml)$', schema_view.without_ui(cache_timeout=None), name='schema-json'), + path('swagger(.json|.yaml)', schema_view.without_ui(cache_timeout=None), name='schema-json'), path('swagger/', schema_view.with_ui('swagger', cache_timeout=None), name='schema-swagger-ui'), path('redoc/', schema_view.with_ui('redoc', cache_timeout=None), name='schema-redoc'), path('', include((router.urls, 'api-root')), name='api-root'),