From 4027397a05498656cea5143e87055a6ced923f47 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Thu, 8 Apr 2021 09:57:15 +0900 Subject: [PATCH] Add upload and catalog views to url --- app/api/urls.py | 16 ++++++++++------ app/api/views/__init__.py | 1 + app/api/views/upload/__init__.py | 1 + 3 files changed, 12 insertions(+), 6 deletions(-) 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