Class NewGameController
java.lang.Object
com.chess.backend.restController.controller.NewGameController
@RestController
@CrossOrigin
@RequestMapping("/createNewGame")
public class NewGameController
extends Object
This class handles the API-call to create a new game.
- Author:
- Hannes Stuetzer
-
Constructor Summary
ConstructorsConstructorDescriptionNewGameController
(NewOnlineGameService newOnlineGameService, INewGameService newGameService) -
Method Summary
Modifier and TypeMethodDescriptionint
createNewGame
(NewGameObject newGameObject) Method that is called on a post request.
-
Constructor Details
-
NewGameController
@Autowired public NewGameController(NewOnlineGameService newOnlineGameService, @Qualifier("NewChessGameService") INewGameService newGameService)
-
-
Method Details
-
createNewGame
Method that is called on a post request.
-