add friend table, start work on ws
This commit is contained in:
+10
-3
@@ -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")
|
||||
Reference in New Issue
Block a user