FINALLY FIXED DATABASE ACCESS OH MY FUCKING I'M EXHAUSTED

This commit is contained in:
2025-12-11 21:54:26 +01:00
parent 46f2cf2d55
commit 35f5978849
6 changed files with 212 additions and 35 deletions

View File

@@ -9,12 +9,12 @@ import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RestController
public class PartyController {
public class GameController {
private final GameService service;
@Autowired
public PartyController(GameService service){
public GameController(GameService service){
this.service = service;
}
@@ -38,7 +38,10 @@ public class PartyController {
.status(HttpStatus.OK)
.body(g);
} catch (Exception e){
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
e.printStackTrace();
return ResponseEntity
.status(HttpStatus.INTERNAL_SERVER_ERROR)
.build();
}
}
@@ -51,7 +54,10 @@ public class PartyController {
status(HttpStatus.INTERNAL_SERVER_ERROR)
.build();
} catch (Exception e){
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();
e.printStackTrace();
return ResponseEntity
.status(HttpStatus.INTERNAL_SERVER_ERROR)
.body(e.getStackTrace());
}
}