osu-wayback/web.py
2018-01-13 21:39:01 +01:00

21 lines
453 B
Python

import json
import MySQLdb
import MySQLdb.cursors
from flask import Flask, make_response, request, render_template, jsonify
app = Flask(__name__)
with open("config.json", "r") as f:
config = json.load(f)
@app.route("/")
@app.route("/home")
def home_index():
return render_template("index.html")
@app.route("/download")
def download_index():
return render_template("download.html")
if __name__ == "__main__":
app.run(**config["web"])