Merge pull request #976 from sharelatex/ja-disable-blog-in-v2

Don't enable legacy blog in v2
This commit is contained in:
James Allen 2018-09-27 11:01:42 +01:00 committed by GitHub
commit a35b3eea7f

View file

@ -90,8 +90,9 @@ module.exports = class Router
if Settings.enableSubscriptions if Settings.enableSubscriptions
webRouter.get '/user/bonus', AuthenticationController.requireLogin(), ReferalController.bonus webRouter.get '/user/bonus', AuthenticationController.requireLogin(), ReferalController.bonus
webRouter.get '/blog', BlogController.getIndexPage if !Settings.overleaf?
webRouter.get '/blog/*', BlogController.getPage webRouter.get '/blog', BlogController.getIndexPage
webRouter.get '/blog/*', BlogController.getPage
webRouter.get '/user/activate', UserPagesController.activateAccountPage webRouter.get '/user/activate', UserPagesController.activateAccountPage
AuthenticationController.addEndpointToLoginWhitelist '/user/activate' AuthenticationController.addEndpointToLoginWhitelist '/user/activate'