29 lines
501 B
Python
29 lines
501 B
Python
|
|
# app.py
|
||
|
|
from flask import Flask, render_template, url_for
|
||
|
|
|
||
|
|
app = Flask(__name__)
|
||
|
|
|
||
|
|
@app.route("/")
|
||
|
|
def index():
|
||
|
|
return render_template("index.html")
|
||
|
|
|
||
|
|
@app.route("/chmod")
|
||
|
|
def chmod():
|
||
|
|
return render_template("chmod.html")
|
||
|
|
|
||
|
|
@app.route("/cron")
|
||
|
|
def cron():
|
||
|
|
return render_template("cron.html")
|
||
|
|
|
||
|
|
@app.route("/json")
|
||
|
|
def json():
|
||
|
|
return render_template("json.html")
|
||
|
|
|
||
|
|
@app.route("/yaml")
|
||
|
|
def yaml():
|
||
|
|
return render_template("yaml.html")
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
app.run(debug=True)
|