Skip to content
Snippets Groups Projects
Commit 77df14c3 authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

LEI-40: Updated routing config for serving LSMR

parent ca766195
No related branches found
No related tags found
1 merge request!90Resolve LEI-40
......@@ -10,9 +10,7 @@ http {
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Fprwarded-Proto $scheme;
proxy_set_header X-NginX-Proxy true;
proxy_pass_request_headers on;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
location /static/ {
......
......@@ -16,6 +16,7 @@ Including another URLconf
from django.contrib import admin
from django.urls import path, re_path
from django.conf.urls import url, include
from django.views.generic.base import TemplateView
from rest_framework import routers, permissions
......@@ -43,13 +44,7 @@ swagger_schema_view = get_schema_view(
permission_classes=(permissions.AllowAny,),
)
urlpatterns = [
path('admin/', admin.site.urls),
path('docs/', include_docs_urls(title='LSMR API')),
re_path(r'^swagger(?P<format>\.json|\.yaml)$', swagger_schema_view.without_ui(cache_timeout=0), name='schema-json'),
path('swagger/', swagger_schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
path('redoc/', swagger_schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
]
#
......@@ -141,4 +136,12 @@ router.register(r'task_blueprint_B', viewsets.TaskBlueprintViewSetReactJSONform)
router.register(r'task_blueprint_C', viewsets.TaskBlueprintViewSetJSONeditorOnline)
#router.register(r'json_editor', viewsets.JSONEditorViewSet)
urlpatterns.extend(router.urls)
urlpatterns = [
path('admin/', admin.site.urls),
path('docs/', include_docs_urls(title='LSMR API')),
re_path(r'^swagger(?P<format>\.json|\.yaml)$', swagger_schema_view.without_ui(cache_timeout=0), name='schema-json'),
path('swagger/', swagger_schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'),
path('redoc/', swagger_schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'),
url(r'^api/', include((router.urls, 'lsmr_api'))),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment