feat(settings): add webhook test functionality

- Add test button to webhook settings dialog
- Implement webhook test API endpoint
- Replace alert with notification system
- Style test button to match existing UI
This commit is contained in:
2026-05-05 23:42:42 +08:00
parent a7dd302acb
commit a97cb90c43
3 changed files with 57 additions and 4 deletions
+3 -1
View File
@@ -41,7 +41,9 @@ export const systemApi = {
return api.get(url);
},
setSettings: (settings) =>
api.post('/system/settings/set', settings)
api.post('/system/settings/set', settings),
testWebhook: (webhookConfig) =>
api.post('/system/webhook/test', webhookConfig)
};
export const authApi = {