From 2e8a6680f50ea074044df273e54b7e60a0776376 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Thu, 7 Jul 2022 18:00:46 +0530 Subject: [PATCH] Added workx prefix to the URL to make it work with the server settings --- workx_backend/urls.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/workx_backend/urls.py b/workx_backend/urls.py index 7ff4961..8d48156 100644 --- a/workx_backend/urls.py +++ b/workx_backend/urls.py @@ -23,9 +23,11 @@ router = routers.DefaultRouter() router.register(r'users', UserViewSet) urlpatterns = [ - path('swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), - path('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'), - path('admin/', admin.site.urls), - path('api/', include(router.urls)), - path('', include('drfpasswordless.urls')), + path('workx/', include([ + path('swagger/', schema_view.with_ui('swagger', cache_timeout=0), name='schema-swagger-ui'), + path('redoc/', schema_view.with_ui('redoc', cache_timeout=0), name='schema-redoc'), + path('admin/', admin.site.urls), + path('api/', include(router.urls)), + path('', include('drfpasswordless.urls')), + ])) ]