Skip to content

Commit

Permalink
Remove RedirectHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Aug 3, 2023
1 parent 262781e commit 068bd7c
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions notebook/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,6 @@ def get_page_config(self):
return page_config


class RedirectHandler(NotebookBaseHandler):
"""A redirect handler."""

@web.authenticated
def get(self):
"""Get the redirect url."""
return self.redirect(self.base_url + "tree")


class TreeHandler(NotebookBaseHandler):
"""A tree page handler."""

Expand Down Expand Up @@ -329,7 +320,6 @@ def initialize_handlers(self):
# if the serverapp set one
page_config["token"] = ""

self.handlers.append(("/?", RedirectHandler))
self.handlers.append(("/tree(.*)", TreeHandler))
self.handlers.append(("/notebooks(.*)", NotebookHandler))
self.handlers.append(("/edit(.*)", FileHandler))
Expand Down

0 comments on commit 068bd7c

Please sign in to comment.