Commit Graph

7 Commits

Author SHA1 Message Date
MinRK
c93f17c324 add basic home, admin pages
- index no longer requires login, it's just a big fat login button
- home has stop, start, admin buttons
- admin doesn't do anything yet
- add jhapi javascript client for REST API
2014-09-14 16:47:10 -07:00
MinRK
b24e47d94a some updates to login redirects
/anything served by Hub redirects to /hub/anything

/hub/user/[user] spawns single-user server and redirects to it
2014-09-14 16:47:09 -07:00
MinRK
0a8759b0a5 flesh out REST API
can now list/view/add/create/modify users
and start/stop single-user servers
2014-09-14 16:47:09 -07:00
MinRK
a245641886 simplify handler setup with default_handlers in modules
like IPython's, but a bit simpler since we don't have
so many services to deal with.
2014-09-14 11:54:37 -07:00
MinRK
53edc0b2f7 add a notion of admin users
and an @admin_only decorator for restricted methods
2014-09-14 11:54:05 -07:00
MinRK
42f040c6a1 return orm.User from get_current_user
rather than name.

removes need for `get_user` wrapper
2014-09-13 17:19:34 -07:00
MinRK
714770d499 reorg handlers a bit
make room for API handlers
2014-09-12 12:09:26 -07:00