12 lines
454 B
Python
12 lines
454 B
Python
from django.urls import path, include
|
|
from rest_framework.routers import DefaultRouter
|
|
from .views import AppConfigViewSet, TrashView, AppConfigPublicView
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'', AppConfigViewSet, basename='app_config') # handles /api/config/
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
path('trash/', TrashView.as_view(), name='trash'),
|
|
path('public/', AppConfigPublicView.as_view(), name='app-config-public'),
|
|
] |