mirror of
https://github.com/foo-dogsquared/wiki.git
synced 2025-01-31 13:57:59 +00:00
18 lines
346 B
Python
18 lines
346 B
Python
|
from flask import Flask
|
||
|
app = Flask(__name__)
|
||
|
|
||
|
@app.route("/")
|
||
|
def hello():
|
||
|
return "Hello World!"
|
||
|
|
||
|
@app.route("/status")
|
||
|
def health_check():
|
||
|
return { "result": "OK - healthy" }
|
||
|
|
||
|
@app.route("/metrics")
|
||
|
def metrics():
|
||
|
return { "data": { "UserCount": 140, "UserCountActive": 23} }
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
app.run(host='0.0.0.0')
|