implement setting page (#12)

This commit is contained in:
UUBulb
2024-11-23 21:59:48 +08:00
committed by GitHub
parent f17bdbf760
commit 3b5023061b
21 changed files with 941 additions and 36 deletions
+10
View File
@@ -0,0 +1,10 @@
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);
}