Debian Codegraph @

testproj/articles/urls.py

raw
1 from django.urls import include, path
2 from rest_framework.routers import SimpleRouter
3
4 from articles import views
5
6 router = SimpleRouter()
7 router.register("", views.ArticleViewSet)
8
9 urlpatterns = [
10 path("", include(router.urls)),
11 ]