Add /ping route to authserver
This commit is contained in:
parent
5c4e0943d0
commit
fd0e4b290a
|
@ -1,3 +1,5 @@
|
||||||
|
from log import logger
|
||||||
|
|
||||||
from flask import Flask, abort, request
|
from flask import Flask, abort, request
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@ -13,8 +15,14 @@ def check_auth():
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
|
logger.info('Index page requested')
|
||||||
|
|
||||||
return '<i>LIFE IS BUT A DREAM...</i>'
|
return '<i>LIFE IS BUT A DREAM...</i>'
|
||||||
|
|
||||||
|
@app.route('/ping')
|
||||||
|
def ping():
|
||||||
|
return 'pong'
|
||||||
|
|
||||||
@app.route('/set-password', methods=['POST'])
|
@app.route('/set-password', methods=['POST'])
|
||||||
def set_password():
|
def set_password():
|
||||||
check_auth()
|
check_auth()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user