feat(config): Webhook Domain

This commit is contained in:
web@ppanel
2024-12-24 17:56:14 +07:00
parent 38d561604d
commit 01e06c6338
30 changed files with 118 additions and 24 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
// @ts-ignore
// API 更新时间:
// API 唯一标识:
import * as announcement from './announcement';
+8
View File
@@ -167,6 +167,14 @@ export async function updateRegisterConfig(
});
}
/** setting telegram bot POST /v1/admin/system/setting_telegram_bot */
export async function settingTelegramBot(options?: { [key: string]: any }) {
return request<API.Response & { data?: any }>('/v1/admin/system/setting_telegram_bot', {
method: 'POST',
...(options || {}),
});
}
/** Get site config GET /v1/admin/system/site_config */
export async function getSiteConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.SiteConfig }>('/v1/admin/system/site_config', {
+1
View File
@@ -762,6 +762,7 @@ declare namespace API {
telegram_bot_token: string;
telegram_group_url: string;
telegram_notify: boolean;
telegram_web_hook_domain: string;
};
type TestEmailSmtpRequest = {