Add routing for entities handlers
This commit is contained in:
parent
683b4514e6
commit
3c2ba96e05
1 changed files with 3 additions and 1 deletions
4
app.py
4
app.py
|
@ -89,11 +89,13 @@ class Oas3Handler(tornado.web.RequestHandler, metaclass=ABCMeta):
|
|||
self.finish()
|
||||
|
||||
|
||||
def make_app(_auth_provider=None):
|
||||
def make_app(auth_provider=None):
|
||||
version_path = r"/v[0-9]"
|
||||
return tornado.web.Application([
|
||||
(version_path + r"/health", HealthHandler),
|
||||
(version_path + r"/oas3", Oas3Handler),
|
||||
(version_path + r"/entities", AllEntitiesHandler, {"auth_provider": auth_provider}),
|
||||
(version_path + r"/entity/{.*}", SingleEntityHandler, {"auth_provider": auth_provider}),
|
||||
])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue