Skip to content

Commit 7492117

Browse files
committed
edit request url
1 parent a5b9b58 commit 7492117

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.idea/workspace.xml

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Server.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Settings(BaseSettings):
3030

3131
app = Flask(__name__)
3232
app.config['SECRET_KEY'] = "test key"
33-
socketio = SocketIO(app, message_queue= f'{REDIS_IP}:{REDIS_PORT}', cors_allowed_origins="*")
33+
socketio = SocketIO(app, message_queue=f'{REDIS_IP}:{REDIS_PORT}', cors_allowed_origins="*")
3434

3535
users_in_room = {}
3636
rooms_sid = {}
@@ -212,15 +212,14 @@ def create_room_request(data, socketId):
212212
)
213213
return response
214214

215+
215216
def enter_user_request(data, socketId):
216217
print(data)
217-
response = requests.post(f'{SPRING_IP}:{SPRING_PORT}/room/{data["roomName"]}/enter/{data["roomPassword"]}',
218+
response = requests.post(f'{SPRING_IP}:{SPRING_PORT}/room/enter',
218219
data=getParam(data, socketId),
219220
headers={'Content-Type': 'application/json'},
220221
verify=False
221222
)
222-
223-
print(f'{SPRING_IP}:{SPRING_PORT}/room/{data["roomName"]}/enter/{data["roomPassword"]}')
224223
return response
225224

226225

@@ -229,7 +228,6 @@ def exit_room(socketID):
229228
headers={'Content-Type': 'application/json'},
230229
verify=False
231230
)
232-
print("################## response ############# ", response)
233231
return response
234232

235233

0 commit comments

Comments
 (0)