增加说明和登录优化

This commit is contained in:
2025-08-21 12:42:38 +08:00
parent 0a627cecfb
commit 36ae245ee6
11 changed files with 110 additions and 5 deletions
+3 -3
View File
@@ -108,9 +108,9 @@ class PixivServer {
// 如果是API请求,返回JSON格式的404
if (req.path.startsWith('/api/')) {
return res.status(404).json({
error: 'Not Found',
message: `Route ${req.originalUrl} not found`
});
error: 'Not Found',
message: `Route ${req.originalUrl} not found`
});
}
// 否则返回前端页面(SPA路由支持)