Browse Source

Add upload and catalog views to url

pull/1310/head
Hironsan 3 years ago
parent
commit
4027397a05
3 changed files with 12 additions and 6 deletions
  1. 16
      app/api/urls.py
  2. 1
      app/api/views/__init__.py
  3. 1
      app/api/views/upload/__init__.py

16
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/<int:project_id>',
view=views.ProjectDetail.as_view(),

1
app/api/views/__init__.py

@ -10,3 +10,4 @@ from .role import *
from .statistics import *
from .task import *
from .user import *
from .upload import *

1
app/api/views/upload/__init__.py

@ -0,0 +1 @@
from . import view
Loading…
Cancel
Save