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()