__author__ = 'magus0219'
import handlers
from tornado.web import RedirectHandler

URLS = [
            # Core Entity
            (r'/event', handlers.DeployHandler),
            (r'/repo/(.*)/rollback/(.*)/(.*)', handlers.RollbackHandler),
            (r'/repo/(.*)/(.*)', handlers.OperationHandler),
            (r'/repo/(.*)', handlers.IndexHandler),
            (r'/repo', RedirectHandler, {"url": "/deploy/repo/zqhua_server"}),
            (r'/login', handlers.LoginHandler),
            (r'/logout', handlers.LogoutHandler),
            (r'/register', handlers.RegisterHandler),
            (r'/chpwd', handlers.ChangePasswordHandler)
        ]
__author__ = 'magus0219'
import handlers
from tornado.web import RedirectHandler
from core.deploy_manager import dms

URLS = [
            # Core Entity
            (r'/event', handlers.DeployHandler),
            (r'/repo/(.*)/rollback/(.*)/(.*)', handlers.RollbackHandler),
            (r'/repo/(.*)/(.*)', handlers.OperationHandler),
            (r'/repo/(.*)', handlers.IndexHandler),
            (r'/repo', RedirectHandler, {"url": "/deploy/repo/{repo}".format(repo=dms[0])}),
            (r'/login', handlers.LoginHandler),
            (r'/logout', handlers.LogoutHandler),
            (r'/register', handlers.RegisterHandler),
            (r'/chpwd', handlers.ChangePasswordHandler)
        ]
change url for default repo