We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f09b55e + 012b570 commit d2e96a3Copy full SHA for d2e96a3
2 files changed
rootfs/api/routers.py
rootfs/api/urls.py
@@ -5,12 +5,13 @@
5
6
from django.conf import settings
7
from django.conf.urls import include, url
8
-
9
-from api import routers, views
10
from rest_framework.authtoken.views import obtain_auth_token as views_obtain_auth_token
+from rest_framework.routers import DefaultRouter
+
11
+from api import views
12
13
-router = routers.ApiRouter()
14
+router = DefaultRouter(trailing_slash=False)
15
16
# Add the generated REST URLs and login/logout endpoint
17
urlpatterns = [
0 commit comments