Add routing for entities handlers

This commit is contained in:
Stefan Haun 2020-09-28 00:07:00 +02:00
parent b7836163ef
commit 053e931b80

2
app.py
View file

@ -103,6 +103,8 @@ def make_app(_auth_provider=None, gitmgr=None):
(version_path + r"/health", HealthHandler, (version_path + r"/health", HealthHandler,
{"sources": [lambda: {"git-head": gitmgr.head_sha}] if gitmgr else None}), {"sources": [lambda: {"git-head": gitmgr.head_sha}] if gitmgr else None}),
(version_path + r"/oas3", Oas3Handler), (version_path + r"/oas3", Oas3Handler),
(version_path + r"/entities", AllEntitiesHandler, {"auth_provider": _auth_provider}),
(version_path + r"/entity/{.*}", SingleEntityHandler, {"auth_provider": _auth_provider}),
]) ])