hallo
This commit is contained in:
17
app.py
17
app.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user