Add join_group, leave_group + update groups.html

This commit is contained in:
Mikkel
2022-05-24 16:13:08 +02:00
parent 542dcc05b0
commit 93f1ae75ff
2 changed files with 24 additions and 4 deletions

View File

@ -5,8 +5,9 @@ import sys, datetime
Group = Blueprint('Group', __name__)
@Group.route("/groups/index", methods=['GET'])
@Group.route("/groups", methods=['GET'])
def index():
current_user.join_group(1000)
groups = current_user.get_groups()
return render_template('groups.html', groups=groups)