Update app terminal name to applications

This commit is contained in:
ibuler
2016-12-25 23:10:53 +08:00
parent a8fa4d2f0c
commit 775cd523eb
47 changed files with 151 additions and 140 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
from django.conf.urls import url
from rest_framework import routers
from .. import api
app_name = 'applications'
router = routers.DefaultRouter()
router.register(r'v1/terminal', api.TerminalViewSet, 'terminal')
router.register(r'v1/terminal/heatbeat', api.TerminalHeatbeatViewSet, 'terminal-heatbeat')
urlpatterns = [
url(r'v1/terminal/register$', api.TerminalRegisterView.as_view(), name='terminal-register')
]
urlpatterns += router.urls