FINALLY FIXED DATABASE ACCESS OH MY FUCKING I'M EXHAUSTED
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user