广告点击接口添加
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user