Add dto and services
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using GameIdeas.Shared.Dto;
|
||||
using GameIdeas.WebAPI.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace GameIdeas.WebAPI.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
|
||||
public class GameController(GameService gameService) : Controller
|
||||
{
|
||||
[HttpGet("Search")]
|
||||
public async Task<IEnumerable<GameDto>> FetchGames([FromQuery] GameFilterDto filter)
|
||||
{
|
||||
return await gameService.SearchGames(filter);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user