oshipka/provision/provision_app/app.py

25 lines
402 B
Python
Raw Normal View History

2020-06-29 11:00:34 +02:00
import json
from flask import Flask, render_template, request, jsonify
app = Flask(__name__)
@app.route('/')
def home():
return render_template("bootstrap.html")
@app.route('/config', methods=["post"])
def post_config():
config = json.loads(request.form)
return jsonify(
{
"raw": config,
})
if __name__ == "__main__":
app.run(debug=True, port=4999)