123212321

This commit is contained in:
XiaoMo 2025-04-29 15:44:07 +08:00
parent 9ab8bf5c5d
commit e5d1aa67f8

View File

@ -114,7 +114,7 @@ const server = http.createServer(async (req, res) => {
}
// 检查第一个路径只能是 avatar,endpoint,go,bbs,www
if (!['avatar', 'go', 'bbs', 'www', 'url', 'thumb'].includes(reqPath)) {
if (!['avatar', 'go', 'bbs', 'www', 'url', 'thumb', 'app'].includes(reqPath)) {
res.writeHead(404, { 'Content-Type': 'text/plain;charset=UTF-8' });
res.end('Not Found');
return;