feat: 在ALLOWED_PATHS中添加'qrcode'路径

This commit is contained in:
2025-09-04 15:23:58 +08:00
parent 5e9b894c5c
commit 500eab86eb
2 changed files with 2 additions and 2 deletions

View File

@@ -229,7 +229,7 @@ async function handleMainRequest(req, res) {
reqPath = 'app'; // Default to 'app' if only one path segment is provided
}
const ALLOWED_PATHS = ['avatar', 'go', 'bbs', 'www', 'url', 'thumb', 'app'];
const ALLOWED_PATHS = ['avatar', 'go', 'bbs', 'www', 'url', 'thumb', 'app', 'qrcode'];
if (!ALLOWED_PATHS.includes(reqPath) || !token) {
return sendErrorResponse(res, HTTP_STATUS.BAD_REQUEST, `Bad Request: Invalid path or missing token.`);
}