reorg handlers a bit

make room for API handlers
This commit is contained in:
MinRK
2014-09-12 12:09:26 -07:00
parent 3968cc0c28
commit 714770d499
12 changed files with 336 additions and 250 deletions

View File

@@ -31,10 +31,13 @@ from .handlers import (
RootHandler,
LoginHandler,
LogoutHandler,
AuthorizationsHandler,
UserHandler,
)
from .apihandlers import (
AuthorizationsAPIHandler,
)
from . import orm
from ._data import DATA_FILES_PATH
from .utils import url_path_join
@@ -215,7 +218,7 @@ class JupyterHubApp(Application):
(r"/", RootHandler),
(r"/login", LoginHandler),
(r"/logout", LogoutHandler),
(r"/api/authorizations/([^/]+)", AuthorizationsHandler),
(r"/api/authorizations/([^/]+)", AuthorizationsAPIHandler),
]
self.handlers = self.add_url_prefix(self.hub_prefix, handlers)
self.handlers.extend([