forked from Gitlink/forgeplus-react
Merge pull request '添加开源大赛路由转发' (#677) from Eeeros/forgeplus-react:gitlink_ssr_head into gitlink_ssr_head
1
This commit is contained in:
commit
b75d05f264
|
|
@ -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"]
|
||||
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"]
|
||||
|
|
@ -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);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue