add friend table, start work on ws

This commit is contained in:
2026-02-24 19:23:34 +01:00
parent b1556515a1
commit e8d6306714
7 changed files with 32 additions and 5 deletions
+10 -3
View File
@@ -13,10 +13,17 @@ main_bp = Blueprint("main", __name__)
"""
@main_bp.route("/", methods=["GET", "POST"])
def main():
return render_template("main.html")
def index():
return render_template("index.html")
@main_bp.route("/home", methods=["GET", "POST"])
@login_required
def home():
return render_template("home.html", username=current_user.username)
print(f"Current user: {current_user.username}")
return render_template("home.html")
@main_bp.route("/play", methods=["GET"])
@login_required
def play():
return render_template("play.html")