广告点击接口添加

This commit is contained in:
谢宇宁
2026-10-29 16:25:57 +07:00
parent 3c9ab2630f
commit 36c5f6c48a
8 changed files with 68 additions and 7 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ const GET_PATHS = [
const POST_PATHS = [
"auth/guest",
"playlet/collect/set", "playlet/like/set", "playlet/chapter/collect/set", "playlet/chapter/like/set",
"playlet/chapter/watch/report", "playlet/forward/heat",
"playlet/chapter/watch/report", "playlet/forward/heat", "ads/click",
];
export function allowedRequest(path: string, method: string): boolean {
return (method === "GET" ? GET_PATHS : method === "POST" ? POST_PATHS : []).includes(path);