from django.urls import path from .views import IndexView from .views import ProjectView from .views import ProjectsView, ProjectAdminView, RawDataAPI, DataDownloadAPI from rest_framework import routers from .views import ProjectViewSet from .views import ProjectLabelsAPI, ProjectLabelAPI, ProjectDocsAPI, AnnotationsAPI, AnnotationAPI router = routers.DefaultRouter() router.register(r'projects', ProjectViewSet) urlpatterns = [ path('', IndexView.as_view(), name='index'), path('api/projects//labels/', ProjectLabelsAPI.as_view(), name='labels'), path('api/projects//labels/', ProjectLabelAPI.as_view(), name='label'), path('api/projects//docs/', ProjectDocsAPI.as_view(), name='docs'), path('api/projects//docs//annotations/', AnnotationsAPI.as_view(), name='annotations'), path('api/projects//docs//annotations/', AnnotationAPI.as_view(), name='ann'), path('projects/', ProjectsView.as_view(), name='projects'), path('projects//admin', ProjectAdminView.as_view(), name='project-admin'), path('projects//download', DataDownloadAPI.as_view(), name='download'), path('projects//', ProjectView.as_view(), name='annotation'), path('projects//apis/raw_data', RawDataAPI.as_view(), name='data_api'), ]