feat(cloudflare): 新增全局托管开关并发布 v1.8.0
This commit is contained in:
@@ -517,4 +517,9 @@ export const api = {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ account_id: accountId, token, kind }),
|
||||
}, 60_000),
|
||||
setCfEnabled: (enabled: boolean) =>
|
||||
request<CfAppSettings>('/api/cloudflare/enabled', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ enabled }),
|
||||
}),
|
||||
}
|
||||
|
||||
@@ -1102,6 +1102,7 @@ export interface CfTunnelPayload {
|
||||
|
||||
export interface CfAppSettings {
|
||||
account_id: string
|
||||
enabled: boolean
|
||||
default_token_configured: boolean
|
||||
default_token_masked: string
|
||||
api_token_configured: boolean
|
||||
@@ -1112,6 +1113,7 @@ export interface CfAppSettings {
|
||||
|
||||
export interface CfAppSettingsInput {
|
||||
account_id: string
|
||||
enabled?: boolean
|
||||
token: string
|
||||
api_token: string
|
||||
mirror: string
|
||||
|
||||
Reference in New Issue
Block a user