Skip to content

Commit

Permalink
Resolve Add a /health endpoint #5
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej P Kus <bartekus@gmail.com>
Signed-off-by: bartekus <bartekus@gmail.com>
  • Loading branch information
bartekus committed Jun 28, 2022
1 parent b1079dc commit c698fe5
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 c698fe5

Please sign in to comment.