refacter: 重构application

This commit is contained in:
ibuler
2020-10-19 20:13:01 +08:00
committed by 老广
parent 874a3eeebf
commit ba4e6e9a9f
12 changed files with 292 additions and 9 deletions

View File

@@ -10,6 +10,7 @@ from .. import api
app_name = 'applications'
router = BulkRouter()
router.register(r'applications', api.ApplicationViewSet, 'application')
router.register(r'remote-apps', api.RemoteAppViewSet, 'remote-app')
router.register(r'database-apps', api.DatabaseAppViewSet, 'database-app')
router.register(r'k8s-apps', api.K8sAppViewSet, 'k8s-app')