Procházet zdrojové kódy

Fix messed up rebase

James Allen před 8 roky
rodič
revize
772ac42005
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1 3
      services/web/app/coffee/router.coffee

+ 1 - 3
services/web/app/coffee/router.coffee

@@ -330,7 +330,6 @@ module.exports = class Router
 			AuthenticationController.httpAuth,
 			AuthenticationController.httpAuth,
 			CompileController.getFileFromClsiWithoutUser
 			CompileController.getFileFromClsiWithoutUser
 
 
-<<<<<<< HEAD
 		webRouter.get '/teams', (req, res, next) ->
 		webRouter.get '/teams', (req, res, next) ->
 			# Match v1 behaviour - if the user is signed in, show their teams list
 			# Match v1 behaviour - if the user is signed in, show their teams list
 			# Otherwise show some information about teams
 			# Otherwise show some information about teams
@@ -338,14 +337,13 @@ module.exports = class Router
 				res.redirect('/user/subscription')
 				res.redirect('/user/subscription')
 			else
 			else
 				res.redirect("#{settings.v1Api.host}/teams")
 				res.redirect("#{settings.v1Api.host}/teams")
-=======
+
 		webRouter.get '/chrome', (req, res, next) ->
 		webRouter.get '/chrome', (req, res, next) ->
 			# Match v1 behaviour - this is used for a Chrome web app
 			# Match v1 behaviour - this is used for a Chrome web app
 			if AuthenticationController.isUserLoggedIn(req)
 			if AuthenticationController.isUserLoggedIn(req)
 				res.redirect('/project')
 				res.redirect('/project')
 			else
 			else
 				res.redirect('/register')
 				res.redirect('/register')
->>>>>>> Add /chrome redirect to match v1 behaviour
 
 
 		#Admin Stuff
 		#Admin Stuff
 		webRouter.get  '/admin', AuthorizationMiddlewear.ensureUserIsSiteAdmin, AdminController.index
 		webRouter.get  '/admin', AuthorizationMiddlewear.ensureUserIsSiteAdmin, AdminController.index