2016-10-17 07:24:41 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
|
|
|
|
from django.conf.urls import url
|
|
|
|
|
|
|
|
import views
|
|
|
|
import api
|
|
|
|
|
|
|
|
app_name = 'terminal'
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
url(r'^terminal$', views.TerminalListView.as_view(), name='terminal-list'),
|
2016-10-19 10:33:14 +00:00
|
|
|
url(r'^terminal/(?P<pk>\d+)/update$', views.TerminalUpdateView.as_view(), name='terminal-update'),
|
2016-10-17 07:24:41 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
urlpatterns += [
|
2016-10-19 10:33:14 +00:00
|
|
|
url(r'^v1/terminal/$', api.TerminalCreateListApi.as_view(), name='terminal-list-create-api'),
|
2016-10-24 11:32:53 +00:00
|
|
|
url(r'^v1/terminal/(?P<pk>\d+)/$', api.TerminalApiDetailUpdateDetailApi.as_view(),
|
|
|
|
name='terminal-detail-update-delete-api'),
|
2016-10-18 15:49:04 +00:00
|
|
|
url(r'^v1/terminal-heatbeat/$', api.TerminalHeatbeatApi.as_view(), name='terminal-heatbeat-api'),
|
2016-10-17 07:24:41 +00:00
|
|
|
]
|