12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- import os
- from flask import Flask
- app = Flask(__name__)
- @app.route("/")
- def main():
- return "Funktioniert!"
- @app.route("/fehlerbericht", methods=["GET", "POST"])
- def status_report():
- return "Fehlerbericht"
- @app.route("/zeit", methods=["GET", "POST"])
- def adjust_time():
- return "Zeit"
- @app.route("/whitelist", methods=["GET", "POST"])
- def whitelist():
- return "Whitelist"
- @app.route("/changelog", methods=["GET", "POST"])
- def changelog():
- return "Changelog"
- @app.route("/kunden", methods=["GET", "POST"])
- def customers():
- return "Kunden"
- @app.route("/tickets", methods=["GET", "POST"])
- def tickets():
- return "Tickets"
- @app.route("/config", methods=["GET", "POST"])
- def config():
- return "Config"
- @app.route("/benutzer", methods=["GET", "POST"])
- def users():
- return "Benutzer"
- @app.route("/kommentar", methods=["GET", "POST"])
- def comments():
- return "Kommentar"
- @app.route("/liste", methods=["GET", "POST"])
- def status_list():
- return "Liste"
- if __name__ == "__main__":
- app.secret_key = os.urandom(24)
- app.run(host="0.0.0.0", port="8087", debug=True)
|