Files
admin-frontend-domain/src/api/waf.ts
T
2024-11-23 21:59:48 +08:00

11 lines
365 B
TypeScript

import { ModelWAF } from "@/types"
import { fetcher, FetcherMethod } from "./api"
export const deleteWAF = async (ip: string[]): Promise<void> => {
return fetcher<void>(FetcherMethod.POST, '/api/v1/batch-delete/waf', ip);
}
export const getWAFList = async (): Promise<ModelWAF[]> => {
return fetcher<ModelWAF[]>(FetcherMethod.GET, '/api/v1/waf', null);
}