modified: app.py

new file:   templates/about.html
	new file:   templates/contact.html
	new file:   templates/faq.html
	new file:   templates/help.html
This commit is contained in:
SimolZimol
2024-09-06 13:42:38 +02:00
parent cd224c8d77
commit c112d34db0
5 changed files with 117 additions and 0 deletions

20
app.py
View File

@@ -108,6 +108,26 @@ def login():
session['oauth_state'] = state
return redirect(authorization_url)
@app.route("/about")
def about():
"""Zeigt eine öffentliche Über uns Seite an."""
return render_template("about.html")
@app.route("/contact")
def contact():
"""Zeigt eine öffentliche Kontaktseite an."""
return render_template("contact.html")
@app.route("/faq")
def faq():
"""Zeigt eine öffentliche FAQ Seite an."""
return render_template("faq.html")
@app.route("/help")
def help_page():
"""Zeigt eine öffentliche Hilfeseite an."""
return render_template("help.html")
@app.route("/callback")
def callback():
"""Verarbeitet den OAuth2-Rückruf von Discord."""