From fc54f15120bd6076e966d3c22b75942610ffd3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=AA=20Thanh=20Sang?= Date: Wed, 17 May 2017 11:09:39 +0700 Subject: [PATCH] Update app.py Added /_ping endpoint (For health check) --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index 273f15b6..c12e5247 100644 --- a/app.py +++ b/app.py @@ -21,6 +21,9 @@ def application(request): request data, with keys 'base64_html' and 'options'. The application will return a response with the PDF file. """ + if request.path == '/_ping': + return Response('Pong!') + if request.method != 'POST': return