Skip to content

Commit

Permalink
Resolve Add a /health endpoint bcgov#5
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekus committed Jun 27, 2022
1 parent b1079dc commit 5728caa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tails_server/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
routes = web.RouteTableDef()


@routes.get("/health/check")
async def health(request):
return web.json_response({"Status": "OK"})


@routes.get("/match/{substring}")
async def match_files(request):
substring = request.match_info["substring"] # e.g., cred def id, issuer DID, tag
Expand Down

0 comments on commit 5728caa

Please sign in to comment.