@@ -94,7 +94,7 @@ def legacy_check_user_room(
94
94
95
95
@legacy .get ("/rooms" )
96
96
def get_rooms ():
97
- """ serve public room list for user"""
97
+ # serve public room list for user
98
98
99
99
return jsonify (
100
100
{
@@ -107,7 +107,8 @@ def get_rooms():
107
107
108
108
@legacy .get ("/rooms/<Room:room>" )
109
109
def get_room_info (room ):
110
- """serve room metadata"""
110
+ # serve room metadata
111
+
111
112
# This really should be authenticated but legacy Session just doesn't pass along auth info.
112
113
# legacy_check_user_room(room=room, update_activity=False, accessible=True)
113
114
@@ -120,7 +121,8 @@ def get_room_info(room):
120
121
121
122
@legacy .get ("/rooms/<Room:room>/image" )
122
123
def legacy_serve_room_image (room ):
123
- """serve room icon"""
124
+ # serve room icon
125
+
124
126
# This really should be authenticated but legacy Session just doesn't pass along auth info.
125
127
# legacy_check_user_room(room=room, update_activity=False, accessible=True)
126
128
@@ -142,16 +144,15 @@ def legacy_member_count():
142
144
143
145
@legacy .post ("/claim_auth_token" )
144
146
def legacy_claim_auth ():
145
- """this does nothing but needs to exist for backwards compat"""
147
+ # this does nothing but needs to exist for backwards compat
148
+
146
149
return jsonify ({'status_code' : http .OK })
147
150
148
151
149
152
@legacy .get ("/auth_token_challenge" )
150
153
def legacy_auth_token_challenge ():
151
- """
152
- legacy endpoint to give back an encrypted auth token bundle for the client to use to
153
- authenticate.
154
- """
154
+ # legacy endpoint to give back an encrypted auth token bundle for the client to use to
155
+ # authenticate.
155
156
156
157
user , room = legacy_check_user_room (request .args .get ("public_key" , "" ), read = False )
157
158
0 commit comments