2016-12-05 15:02:08 +00:00
|
|
|
# ~*~ coding: utf-8 ~*~
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
|
|
|
from django.conf.urls import url
|
2017-03-13 16:58:25 +00:00
|
|
|
from .. import views
|
2016-12-05 15:02:08 +00:00
|
|
|
|
2016-12-11 04:05:11 +00:00
|
|
|
__all__ = ["urlpatterns"]
|
2016-12-05 15:02:08 +00:00
|
|
|
|
2017-12-12 06:28:12 +00:00
|
|
|
app_name = "ops"
|
|
|
|
|
2016-12-05 15:02:08 +00:00
|
|
|
urlpatterns = [
|
2016-12-19 06:07:21 +00:00
|
|
|
# TResource Task url
|
2017-03-22 13:57:05 +00:00
|
|
|
url(r'^task/$', views.TaskListView.as_view(), name='task-list'),
|
2017-12-12 07:45:01 +00:00
|
|
|
url(r'^task/(?P<pk>[0-9a-zA-Z\-]{36})/$', views.TaskDetailView.as_view(), name='task-detail'),
|
|
|
|
url(r'^task/(?P<pk>[0-9a-zA-Z\-]{36})/adhoc/$', views.TaskAdhocView.as_view(), name='task-adhoc'),
|
|
|
|
url(r'^task/(?P<pk>[0-9a-zA-Z\-]{36})/history/$', views.TaskHistoryView.as_view(), name='task-history'),
|
2017-12-20 03:30:15 +00:00
|
|
|
url(r'^adhoc/(?P<pk>[0-9a-zA-Z\-]{36})/$', views.AdHocDetailView.as_view(), name='adhoc-detail'),
|
|
|
|
url(r'^adhoc/(?P<pk>[0-9a-zA-Z\-]{36})/history/$', views.AdHocHistoryView.as_view(), name='adhoc-history'),
|
|
|
|
url(r'^adhoc/history/(?P<pk>[0-9a-zA-Z\-]{36})/$', views.AdHocHistoryDetailView.as_view(), name='adhoc-history-detail'),
|
2018-04-02 07:54:49 +00:00
|
|
|
url(r'^celery/task/(?P<pk>[0-9a-zA-Z\-]{36})/log/$', views.CeleryTaskLogView.as_view(), name='celery-task-log'),
|
2017-12-20 03:30:15 +00:00
|
|
|
]
|