From aafe5b2eb7183d167ead6576f2f271b2a8067ba6 Mon Sep 17 00:00:00 2001 From: kasra Date: Wed, 31 Jan 2024 04:04:56 +0330 Subject: [PATCH] Add api prefix to urls --- johar/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/johar/urls.py b/johar/urls.py index fccc9c1..bc74e27 100644 --- a/johar/urls.py +++ b/johar/urls.py @@ -20,8 +20,8 @@ urlpatterns = [ path('admin/', admin.site.urls), - path('news/', include('news.api.urls')), - path('news/feedback/', include('feedback.api.urls')), + path('api/news/', include('news.api.urls')), + path('api/news/feedback/', include('feedback.api.urls')), ] urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)