Add /apps setup and spec out more targets
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
"""The Magic App."""
|
||||
|
||||
from flask import Flask, render_template
|
||||
from flask import Flask, render_template, send_from_directory
|
||||
|
||||
app = Flask(__name__)
|
||||
|
||||
@ -10,5 +10,10 @@ def home():
|
||||
return render_template("index.html")
|
||||
|
||||
|
||||
@app.route("/apps")
|
||||
def apps():
|
||||
return send_from_directory("static", "apps.json")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(host="0.0.0.0")
|
||||
|
3
magic_app/static/apps.json
Normal file
3
magic_app/static/apps.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"gitea": "https://git.autonomic.zone/compose-stacks/gitea"
|
||||
}
|
Reference in New Issue
Block a user