feat: 增加CC防护

This commit is contained in:
zhengkunwang223
2022-12-06 11:42:11 +08:00
committed by zhengkunwang223
parent ba77f2853f
commit 047bd907f0
12 changed files with 280 additions and 11 deletions

View File

@@ -148,3 +148,11 @@ export const UpdateHTTPSConfig = (req: WebSite.HTTPSReq) => {
export const PreCheck = (req: WebSite.CheckReq) => {
return http.post<WebSite.CheckRes[]>(`/websites/check`, req);
};
export const GetWafConfig = (req: WebSite.WafReq) => {
return http.post<WebSite.WafRes>(`/websites/waf/config`, req);
};
export const UpdateWafEnable = (req: WebSite.WafUpdate) => {
return http.post<any>(`/websites/waf/update`, req);
};