Skip to content

Commit

Permalink
Moved root handler to proper package
Browse files Browse the repository at this point in the history
  • Loading branch information
kofalt committed Dec 29, 2016
1 parent b6cfba5 commit 24964d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/api.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import webapp2
import webapp2_extras.routes

from . import root
from .centralclient import CentralClient
from .download import Download
from .handlers.collectionshandler import CollectionsHandler
Expand All @@ -12,6 +11,7 @@
from .handlers.listhandler import AnalysesHandler, ListHandler, FileListHandler, NotesListHandler, PermissionsListHandler, TagsListHandler
from .handlers.reporthandler import ReportHandler
from .handlers.resolvehandler import ResolveHandler
from .handlers.roothandler import RootHandler
from .handlers.schemahandler import SchemaHandler
from .handlers.searchhandler import SearchHandler
from .handlers.userhandler import UserHandler
Expand Down Expand Up @@ -72,7 +72,7 @@ def prefix(path, routes):
)

endpoints = [
route('/api', root.Root),
route('/api', RootHandler),
prefix('/api', [

# System configuration
Expand Down
4 changes: 2 additions & 2 deletions api/root.py → api/handlers/roothandler.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import re
import markdown

from . import base
from .. import base

class Root(base.RequestHandler):
class RootHandler(base.RequestHandler):

def head(self):
"""
Expand Down

0 comments on commit 24964d2

Please sign in to comment.