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 Details

  • Method Details

    • createNewGame

      @PostMapping public int createNewGame(@RequestBody NewGameObject newGameObject)
      Method that is called on a post request.