diff --git a/Routes.js b/Routes.js index 57050c1f2..8187706c6 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", "admins", "oauth"] \ 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", "oauth", "competitions"] \ No newline at end of file diff --git a/server/index.js b/server/index.js index 940d1ed37..0e429a6d0 100644 --- a/server/index.js +++ b/server/index.js @@ -45,7 +45,7 @@ const proxy = createProxyMiddleware(options(`http://localhost:${ rubyPort }`)); // }); // 设置代理 -app.use(['/api', '/admins', '/attachments', '/oauth'], (req, res) => { +app.use(['/api', '/admins', '/attachments', '/oauth', '/competitions'], (req, res) => { proxy(req, res); });