Class GetChessboardController
java.lang.Object
com.chess.backend.restController.controller.GetChessboardController
@RestController
@CrossOrigin
@RequestMapping("/getChessboard")
public class GetChessboardController
extends Object
This class handles the API-call to get the current chessboard.
- Author:
- Hannes Stuetzer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetChessboard
(int gameID) Method that is called on a get request.
-
Constructor Details
-
GetChessboardController
-
-
Method Details
-
getChessboard
Method that is called on a get request.- Parameters:
gameID
- the id of the current game (as params).- Returns:
- a
ChessboardObject
containing the current chessboard.
-