2019-05-20 11:39:53 +00:00
|
|
|
# coding:utf-8
|
|
|
|
#
|
2021-01-03 21:27:03 +00:00
|
|
|
from django.urls import path
|
2019-05-20 11:39:53 +00:00
|
|
|
from rest_framework_bulk.routes import BulkRouter
|
|
|
|
from .. import api
|
|
|
|
|
2021-01-03 21:27:03 +00:00
|
|
|
|
2019-05-20 11:39:53 +00:00
|
|
|
app_name = 'applications'
|
|
|
|
|
2021-01-03 21:27:03 +00:00
|
|
|
|
2019-05-20 11:39:53 +00:00
|
|
|
router = BulkRouter()
|
2020-10-19 12:13:01 +00:00
|
|
|
router.register(r'applications', api.ApplicationViewSet, 'application')
|
2021-07-27 08:06:00 +00:00
|
|
|
router.register(r'accounts', api.ApplicationAccountViewSet, 'application-account')
|
2022-03-14 08:47:32 +00:00
|
|
|
router.register(r'system-users-apps-relations', api.SystemUserAppRelationViewSet, 'system-users-apps-relation')
|
2021-07-27 08:06:00 +00:00
|
|
|
router.register(r'account-secrets', api.ApplicationAccountSecretViewSet, 'application-account-secret')
|
2021-01-03 21:27:03 +00:00
|
|
|
|
2019-05-20 11:39:53 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2019-09-12 10:25:22 +00:00
|
|
|
path('remote-apps/<uuid:pk>/connection-info/', api.RemoteAppConnectionInfoApi.as_view(), name='remote-app-connection-info'),
|
2021-07-27 08:06:00 +00:00
|
|
|
# path('accounts/', api.ApplicationAccountViewSet.as_view(), name='application-account'),
|
|
|
|
# path('account-secrets/', api.ApplicationAccountSecretViewSet.as_view(), name='application-account-secret')
|
2019-05-20 11:39:53 +00:00
|
|
|
]
|
2019-12-19 07:28:17 +00:00
|
|
|
|
2019-05-20 11:39:53 +00:00
|
|
|
|
2021-01-03 21:27:03 +00:00
|
|
|
urlpatterns += router.urls
|