diff --git a/src/main/java/com/gabriel_torelo/game_list/controllers/GameController.java b/src/main/java/com/gabriel_torelo/game_list/controllers/GameController.java new file mode 100644 index 0000000..4c1c597 --- /dev/null +++ b/src/main/java/com/gabriel_torelo/game_list/controllers/GameController.java @@ -0,0 +1,22 @@ +package com.gabriel_torelo.game_list.controllers; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.gabriel_torelo.game_list.dto.GameMinDTO; +import com.gabriel_torelo.game_list.services.GameService; + +@RestController +@RequestMapping(value = "/games") +public class GameController { + + @Autowired + private GameService gameService; + + @GetMapping + public List readAll() { + return gameService.readAll(); + } +}