diff --git a/app/api/urls.py b/app/api/urls.py index 9888f2ee..19614225 100644 --- a/app/api/urls.py +++ b/app/api/urls.py @@ -1,9 +1,18 @@ from django.urls import include, path -from rest_framework.authtoken.views import obtain_auth_token from . import views urlpatterns_project = [ + path( + route='upload', + view=views.upload.view.UploadAPI.as_view(), + name='upload' + ), + path( + route='catalog', + view=views.upload.view.DatasetCatalog.as_view(), + name='catalog' + ), path( route='statistics', view=views.StatisticsAPI.as_view(), @@ -174,11 +183,6 @@ urlpatterns = [ view=views.TaskStatus.as_view(), name='task_status' ), - path( - route='tasks/test', - view=views.TaskTest.as_view(), - name='task_test' - ), path( route='projects/', view=views.ProjectDetail.as_view(), diff --git a/app/api/views/__init__.py b/app/api/views/__init__.py index 996a8aef..c851c30c 100644 --- a/app/api/views/__init__.py +++ b/app/api/views/__init__.py @@ -10,3 +10,4 @@ from .role import * from .statistics import * from .task import * from .user import * +from .upload import * diff --git a/app/api/views/upload/__init__.py b/app/api/views/upload/__init__.py index e69de29b..90cdbd77 100644 --- a/app/api/views/upload/__init__.py +++ b/app/api/views/upload/__init__.py @@ -0,0 +1 @@ +from . import view