Skip to content

Commit 72757a7

Browse files
committed
url fix
1 parent f845119 commit 72757a7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

game_server/src/main/kotlin/com/imsproject/gameserver/api/RestHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class RestHandler(
4040
private val dispatcher = Executors.newCachedThreadPool().asCoroutineDispatcher()
4141
private val scope = CoroutineScope(dispatcher)
4242

43-
@GetMapping("/login")
43+
@RequestMapping("/login", method = [RequestMethod.POST, RequestMethod.GET])
4444
fun login(@RequestHeader(value = "Authorization") header : String?): ResponseEntity<String> {
4545
if(header == null){
4646
return Response.getError("No Authorization header").toResponseEntity(HttpStatus.BAD_REQUEST)

manager/src/managers/session_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_event_data(session_id: str, type_: str = None, subtype: str = None) -> l
2929
js["subtype"] = subtype
3030

3131
res = server_response(
32-
post_auth(f"{URL}data/sessionEvent/select", json=js, timeout=1.0)
32+
post_auth(f"{URL}data/session/select/events", json=js, timeout=1.0)
3333
)
3434

3535
if not res or not res.get_success():

0 commit comments

Comments
 (0)