diff --git a/app.py b/app.py index 2507d97..5c880cf 100644 --- a/app.py +++ b/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}), ])