2018-01-11 12:10:27 +00:00
|
|
|
from __future__ import absolute_import
|
|
|
|
|
2018-07-27 10:56:40 +00:00
|
|
|
from django.urls import path
|
2023-12-14 02:38:55 +00:00
|
|
|
from rest_framework_bulk.routes import BulkRouter
|
2018-01-11 12:10:27 +00:00
|
|
|
|
|
|
|
from .. import api
|
|
|
|
|
|
|
|
app_name = 'common'
|
2023-12-14 02:38:55 +00:00
|
|
|
router = BulkRouter()
|
|
|
|
router.register(r'chatai-prompts', api.ChatPromptViewSet, 'chatai-prompt')
|
2018-01-11 12:10:27 +00:00
|
|
|
|
|
|
|
urlpatterns = [
|
2018-07-27 10:56:40 +00:00
|
|
|
path('mail/testing/', api.MailTestingAPI.as_view(), name='mail-testing'),
|
2019-03-28 04:50:04 +00:00
|
|
|
path('ldap/users/', api.LDAPUserListApi.as_view(), name='ldap-user-list'),
|
2021-03-24 11:01:35 +00:00
|
|
|
path('wecom/testing/', api.WeComTestingAPI.as_view(), name='wecom-testing'),
|
|
|
|
path('dingtalk/testing/', api.DingTalkTestingAPI.as_view(), name='dingtalk-testing'),
|
2021-08-12 08:44:06 +00:00
|
|
|
path('feishu/testing/', api.FeiShuTestingAPI.as_view(), name='feishu-testing'),
|
2024-03-22 10:05:43 +00:00
|
|
|
path('lark/testing/', api.LarkTestingAPI.as_view(), name='lark-testing'),
|
2023-11-29 09:45:44 +00:00
|
|
|
path('slack/testing/', api.SlackTestingAPI.as_view(), name='slack-testing'),
|
2022-08-09 08:09:20 +00:00
|
|
|
path('sms/<str:backend>/testing/', api.SMSTestingAPI.as_view(), name='sms-testing'),
|
2021-08-24 06:20:54 +00:00
|
|
|
path('sms/backend/', api.SMSBackendAPI.as_view(), name='sms-backend'),
|
2023-07-31 09:39:30 +00:00
|
|
|
path('vault/testing/', api.VaultTestingAPI.as_view(), name='vault-testing'),
|
2023-12-05 02:58:19 +00:00
|
|
|
path('chatai/testing/', api.ChatAITestingAPI.as_view(), name='chatai-testing'),
|
2023-07-31 09:39:30 +00:00
|
|
|
path('vault/sync/', api.VaultSyncDataAPI.as_view(), name='vault-sync'),
|
2023-08-30 09:31:59 +00:00
|
|
|
path('security/block-ip/', api.BlockIPSecurityAPI.as_view(), name='block-ip'),
|
|
|
|
path('security/unlock-ip/', api.UnlockIPSecurityAPI.as_view(), name='unlock-ip'),
|
2019-12-05 07:09:25 +00:00
|
|
|
|
2020-04-29 09:04:48 +00:00
|
|
|
path('setting/', api.SettingsApi.as_view(), name='settings-setting'),
|
2023-07-14 08:54:42 +00:00
|
|
|
path('logo/', api.SettingsLogoApi.as_view(), name='settings-logo'),
|
2019-11-06 03:57:00 +00:00
|
|
|
path('public/', api.PublicSettingApi.as_view(), name='public-setting'),
|
2022-05-06 08:27:14 +00:00
|
|
|
path('public/open/', api.OpenPublicSettingApi.as_view(), name='open-public-setting'),
|
2023-07-28 02:40:48 +00:00
|
|
|
path('server-info/', api.ServerInfoApi.as_view(), name='server-info'),
|
2024-01-11 06:40:44 +00:00
|
|
|
path('i18n/<str:name>/', api.ComponentI18nApi.as_view(), name='i18n-data'),
|
2018-01-11 12:10:27 +00:00
|
|
|
]
|
2023-12-14 02:38:55 +00:00
|
|
|
|
|
|
|
urlpatterns += router.urls
|