Add join_group, leave_group + update groups.html
This commit is contained in:
1 parent
542dcc05b0
commit
93f1ae75ff
2 files changed
+24
-4
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user