File: urls.py

package info (click to toggle)
djangorestframework-filters 1.0.0.dev2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 420 kB
  • sloc: python: 2,855; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 339 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14

from django.urls import include, re_path
from rest_framework import routers

from . import views

router = routers.DefaultRouter()
router.register(r'df-notes', views.DFNoteViewSet, basename='df-notes')
router.register(r'drf-notes', views.DRFFNoteViewSet, basename='drf-notes')


urlpatterns = [
    re_path(r'^', include(router.urls)),
]