From fd0e4b290a7adf8186124612e87b9c479964bc66 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 23 Nov 2020 07:27:46 +0000 Subject: [PATCH] Add /ping route to authserver --- authserver/server.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/authserver/server.py b/authserver/server.py index 36d7fe3..5924f4a 100644 --- a/authserver/server.py +++ b/authserver/server.py @@ -1,3 +1,5 @@ +from log import logger + from flask import Flask, abort, request app = Flask(__name__) @@ -13,8 +15,14 @@ def check_auth(): @app.route('/') def index(): + logger.info('Index page requested') + return 'LIFE IS BUT A DREAM...' +@app.route('/ping') +def ping(): + return 'pong' + @app.route('/set-password', methods=['POST']) def set_password(): check_auth()