14 lines
348 B
Python
14 lines
348 B
Python
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__':
|
|
app.run(host='0.0.0.0', port=5002) |