git-webhook/restart_this_app.py

14 lines
335 B
Python
Raw Normal View History

2023-05-30 18:45:01 +02:00
from flask import Flask, render_template
import json
app = Flask(__name__)
@app.route('/restart-this-app')
def render_message():
with open('data.json', encoding='UTF-8') as file:
data = json.load(file)
return render_template('index.html', data=data)
if __name__ == '__main__':
2023-05-30 18:45:53 +02:00
app.run(host='0.0.0.0', port=5005)