This repository has been archived on 2020-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
2020-06-30 18:35:01 +00:00
|
|
|
from flask import Flask, render_template, send_from_directory
|
2020-06-30 18:28:47 +00:00
|
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
@app.route("/")
|
|
|
|
def home():
|
|
|
|
return render_template("index.html")
|
|
|
|
|
|
|
|
|
2020-06-30 18:35:01 +00:00
|
|
|
@app.route("/apps")
|
|
|
|
def apps():
|
|
|
|
return send_from_directory("static", "apps.json")
|
|
|
|
|
|
|
|
|
2020-06-30 18:28:47 +00:00
|
|
|
if __name__ == "__main__":
|
|
|
|
app.run(host="0.0.0.0")
|