diff --git a/Routes.js b/Routes.js index da43c2ca3..f5a0f951a 100644 --- a/Routes.js +++ b/Routes.js @@ -46,4 +46,4 @@ export const deepRoutes = [ ] // 不进行组织或个人判断 -export const specialRoute = ["explore", "settings", "setting", "mulan", "wiki", "issues", "setting", "trending", "code", "projects", "pulls", "mine", "login", "register", "email", "export", "nopage", "404", "403", "500", "501", "search", "organize", "login", "register", "resetPassword", "aboutus","educoder", "glcc","bindlogin", "softbot","zone", "undefined"] \ No newline at end of file +export const specialRoute = ["explore", "settings", "setting", "mulan", "wiki", "issues", "setting", "trending", "code", "projects", "pulls", "mine", "login", "register", "email", "export", "nopage", "404", "403", "500", "501", "search", "organize", "login", "register", "resetPassword", "aboutus","educoder", "glcc","bindlogin", "softbot","zone", "undefined", "admins"] \ No newline at end of file diff --git a/server/index.js b/server/index.js index ea5cc1601..969152f6e 100644 --- a/server/index.js +++ b/server/index.js @@ -28,7 +28,7 @@ const proxy = createProxyMiddleware(options('http://localhost:8081')); // }); // 设置代理 -app.use(['/api', '/images', '/system', '/favicon', '/robots.txt', '/sitemap*.xml', '/sitemap*.txt', '/favicon.ico'], (req, res) => { +app.use(['/api', '/images', '/system', '/favicon', '/robots.txt', '/sitemap*.xml', '/sitemap*.txt', '/favicon.ico', '/admins'], (req, res) => { proxy(req, res); });