|
|
@ -2,7 +2,7 @@ from django.urls import path |
|
|
|
|
|
|
|
from .views import IndexView |
|
|
|
from .views import ProjectView, DatasetView, DatasetUpload |
|
|
|
from .views import ProjectsView, ProjectAdminView, RawDataAPI, DataDownload |
|
|
|
from .views import ProjectsView, ProjectAdminView, DataDownload |
|
|
|
from rest_framework import routers |
|
|
|
from .views import ProjectViewSet |
|
|
|
from .views import ProjectLabelsAPI, ProjectLabelAPI, ProjectDocsAPI, AnnotationsAPI, AnnotationAPI |
|
|
@ -20,10 +20,9 @@ urlpatterns = [ |
|
|
|
path('api/projects/<int:project_id>/docs/<int:doc_id>/annotations/', AnnotationsAPI.as_view(), name='annotations'), |
|
|
|
path('api/projects/<int:project_id>/docs/<int:doc_id>/annotations/<int:annotation_id>', AnnotationAPI.as_view(), name='ann'), |
|
|
|
path('projects/', ProjectsView.as_view(), name='projects'), |
|
|
|
path('projects/<int:pk>/admin', ProjectAdminView.as_view(), name='project-admin'), |
|
|
|
path('projects/<int:project_id>/admin', ProjectAdminView.as_view(), name='project-admin'), |
|
|
|
path('projects/<int:project_id>/download', DataDownload.as_view(), name='download'), |
|
|
|
path('projects/<int:project_id>/', ProjectView.as_view(), name='annotation'), |
|
|
|
path('projects/<int:pk>/apis/raw_data', RawDataAPI.as_view(), name='data_api'), |
|
|
|
path('projects/<int:pk>/docs/', DatasetView.as_view(), name='dataset'), |
|
|
|
path('projects/<int:pk>/docs/create', DatasetUpload.as_view(), name='dataset-upload'), |
|
|
|
path('projects/<int:project_id>/docs/', DatasetView.as_view(), name='dataset'), |
|
|
|
path('projects/<int:project_id>/docs/create', DatasetUpload.as_view(), name='dataset-upload'), |
|
|
|
] |