Class JoinOnlineGameController
java.lang.Object
com.chess.backend.restController.controller.JoinOnlineGameController
@RestController
@CrossOrigin
@RequestMapping("/joinOnlineNewGame")
public class JoinOnlineGameController
extends Object
This class handles the API-call to create a new game.
- Author:
- Hannes Stuetzer
-
Constructor Summary
ConstructorsConstructorDescriptionJoinOnlineGameController
(ChessGameService newGameService, GameRepository gameRepository) -
Method Summary
Modifier and TypeMethodDescriptionint
joinOnlineGame
(JoinOnlineGameObject joinOnlineGameObject) Method that is called on a post request.
-
Constructor Details
-
JoinOnlineGameController
@Autowired public JoinOnlineGameController(ChessGameService newGameService, GameRepository gameRepository)
-
-
Method Details
-
joinOnlineGame
Method that is called on a post request.
-