From e71a59d7a8c0117d529184811103bf091f06eeed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Wed, 24 Apr 2024 11:45:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=BC=80=E6=BA=90=E5=A4=A7?= =?UTF-8?q?=E8=B5=9B=E8=B7=AF=E7=94=B1=E8=BD=AC=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Routes.js | 2 +- server/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); });