{"action":"created","issue":{"url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/1854","repository_url":"https://api.github.com/repos/jupyterhub/jupyterhub","labels_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/1854/labels{/name}","comments_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/1854/comments","events_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/1854/events","html_url":"https://github.com/jupyterhub/jupyterhub/pull/1854","id":320009095,"number":1854,"title":"Add custom handlers and allow setting of defaults","user":{"login":"summerswallow-whi","id":32751241,"avatar_url":"https://avatars2.githubusercontent.com/u/32751241?v=4","gravatar_id":"","url":"https://api.github.com/users/summerswallow-whi","html_url":"https://github.com/summerswallow-whi","followers_url":"https://api.github.com/users/summerswallow-whi/followers","following_url":"https://api.github.com/users/summerswallow-whi/following{/other_user}","gists_url":"https://api.github.com/users/summerswallow-whi/gists{/gist_id}","starred_url":"https://api.github.com/users/summerswallow-whi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/summerswallow-whi/subscriptions","organizations_url":"https://api.github.com/users/summerswallow-whi/orgs","repos_url":"https://api.github.com/users/summerswallow-whi/repos","events_url":"https://api.github.com/users/summerswallow-whi/events{/privacy}","received_events_url":"https://api.github.com/users/summerswallow-whi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-05-03T17:20:04Z","updated_at":"2018-05-14T12:37:27Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/jupyterhub/jupyterhub/pulls/1854","html_url":"https://github.com/jupyterhub/jupyterhub/pull/1854","diff_url":"https://github.com/jupyterhub/jupyterhub/pull/1854.diff","patch_url":"https://github.com/jupyterhub/jupyterhub/pull/1854.patch"},"body":"Can be used to override existing handlers and add new ones, plus new defaults can be specified both for running user state and not.\r\n\r\nExample usage:\r\n```\r\nc.JupyterHub.extra_page_handlers = [\r\n    (r'/?', CustomRootHandler),\r\n    (r'/welcome', WelcomeHandler)]\r\n\r\nc.JupyterHub.default_user_page = \"/welcome\"\r\n```\r\n\r\nSee https://github.com/jupyterhub/jupyterhub/issues/1853"},"comment":{"url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/comments/388801588","html_url":"https://github.com/jupyterhub/jupyterhub/pull/1854#issuecomment-388801588","issue_url":"https://api.github.com/repos/jupyterhub/jupyterhub/issues/1854","id":388801588,"user":{"login":"minrk","id":151929,"avatar_url":"https://avatars1.githubusercontent.com/u/151929?v=4","gravatar_id":"","url":"https://api.github.com/users/minrk","html_url":"https://github.com/minrk","followers_url":"https://api.github.com/users/minrk/followers","following_url":"https://api.github.com/users/minrk/following{/other_user}","gists_url":"https://api.github.com/users/minrk/gists{/gist_id}","starred_url":"https://api.github.com/users/minrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minrk/subscriptions","organizations_url":"https://api.github.com/users/minrk/orgs","repos_url":"https://api.github.com/users/minrk/repos","events_url":"https://api.github.com/users/minrk/events{/privacy}","received_events_url":"https://api.github.com/users/minrk/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T12:37:26Z","updated_at":"2018-05-14T12:37:26Z","author_association":"OWNER","body":"Making the default URL include the hub prefix makes it impossible to default to a service page, for instance. So I think default url should be used as-is (no modifications).\r\n\r\n- remove prefix from `default_url` and use it as-is\r\n- call `extra_page_handlers` `extra_handlers` (they need not be pages)\r\n- add help strings for the new configurables (`help=\"\"\"...\"\"\"`)"}}
{"actor":{"display_login":"minrk"}}