This commit is contained in:
2025-09-12 08:54:30 +02:00
parent 03da907c73
commit 8db70323a1
5 changed files with 63 additions and 17 deletions

17
app.py
View File

@@ -6,8 +6,13 @@ app = Flask(__name__)
app.secret_key = "HURENSOHN"
@app.route('/')
def hello_world(): # put application's code here
return render_template("index.html")
def index():
return render_template('base.html',
site_name='Mein Spiel Wiki',
current_year=2025,
popular_items=[],
categories=[]
)
@app.route('/login', methods=['GET', 'POST'])
@@ -18,6 +23,14 @@ def login():
def register():
return render_template("register.html")
@app.route('/logout')
def logout():
session.pop()
return redirect(url_for('index'))
@app.route('/search', methods=['POST'])
def search():
return ""
if __name__ == '__main__':
app.run(debug=True)