mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 23:27:17 +08:00
feat: 支持 webhook, close #695
This commit is contained in:
14
web/src/api/panel/webhook/index.ts
Normal file
14
web/src/api/panel/webhook/index.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { http } from '@/utils'
|
||||
|
||||
export default {
|
||||
// 获取 WebHook 列表
|
||||
list: (page: number, limit: number): any => http.Get('/webhook', { params: { page, limit } }),
|
||||
// 获取 WebHook 信息
|
||||
get: (id: number): any => http.Get(`/webhook/${id}`),
|
||||
// 创建 WebHook
|
||||
create: (req: any): any => http.Post('/webhook', req),
|
||||
// 修改 WebHook
|
||||
update: (id: number, req: any): any => http.Put(`/webhook/${id}`, req),
|
||||
// 删除 WebHook
|
||||
delete: (id: number): any => http.Delete(`/webhook/${id}`)
|
||||
}
|
||||
Reference in New Issue
Block a user