Ticket #35848: urls.py

File urls.py, 260 bytes (added by Андрей, 4 weeks ago)
Line 
1from django.urls import path, include
2from rest_framework.routers import DefaultRouter
3from directories.views import MyModelViewSet
4
5
6router = DefaultRouter()
7router.register("mymodel", MyModelViewSet)
8
9
10urlpatterns = [
11 path("d/", include(router.urls)),
12]
Back to Top