Skip to content

Commit

Permalink
Merge pull request #12 from kysre/add-api-prefix-to-urls
Browse files Browse the repository at this point in the history
Add api prefix to urls
  • Loading branch information
kysre authored Jan 31, 2024
2 parents 07ce019 + aafe5b2 commit 96bd389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions johar/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 96bd389

Please sign in to comment.