Add /ping route to authserver

This commit is contained in:
Tanner Collin 2020-11-23 07:27:46 +00:00
parent 5c4e0943d0
commit fd0e4b290a

View File

@ -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 '<i>LIFE IS BUT A DREAM...</i>'
@app.route('/ping')
def ping():
return 'pong'
@app.route('/set-password', methods=['POST'])
def set_password():
check_auth()