IDDRS_API/data_api/urls.py

25 lines
804 B
Python
Raw Normal View History

2023-11-20 14:31:13 +00:00
from django.urls import path, include
from rest_framework import routers
from .views import LevelViewSet, StandardsViewSet, FileEventsViewSet
from . import views
router = routers.DefaultRouter()
router.register(r'levels', LevelViewSet)
router.register(r'standards', StandardsViewSet)
router.register(r'fileEvents', FileEventsViewSet)
urlpatterns = [
path('', include(router.urls)),
path('level-submit/', views.levelSubmit, name='level-submit'),
path('level-delete/', views.levelDelete, name='level-delete'),
path('upload-standard/', views.upload_standard, name='upload-standard'),
path('standard-delete/', views.standardDelete, name='standard-delete'),
path('process-files/', views.processFiles, name='process-files'),
2023-11-29 13:21:44 +00:00
path('api/', include('data_api.api.urls')),
2023-11-20 14:31:13 +00:00
]