Enable authentication

This commit is contained in:
2025-04-21 00:35:36 +02:00
parent 4fd5f71724
commit 1080d3b4ad
10 changed files with 75 additions and 18 deletions

View File

@@ -5,13 +5,15 @@ using Microsoft.AspNetCore.Mvc;
namespace GameIdeas.WebAPI.Controllers;
[ApiController]
[Route("api/[controller]")]
public class UserController(
IUserService userService,
ILoggerFactory loggerFactory) : Controller
{
private readonly ILogger<UserController> logger = loggerFactory.CreateLogger<UserController>();
[HttpPost("login")]
[HttpPost("Login")]
public async Task<ActionResult<TokenDto>> Login([FromBody] UserDto model)
{
try