osu-wayback/web.py

16 lines
333 B
Python
Raw Normal View History

2018-01-12 23:16:10 +01:00
import json
import MySQLdb
import MySQLdb.cursors
from flask import Flask, make_response, request, render_template
app = Flask(__name__)
with open("config.json", "r") as f:
config = json.load(f)
@app.route("/")
def home_index():
return render_template("index.html")
if __name__ == "__main__":
app.run(**config["web"])