✅ controller endpoint gets 404 when hit

hi everyone, im trying to make an auth web api, i managed to create an AuthService and whatnot, and my controller has only two routes, im trying to implement the /register and swagger gets it fine, but as soon as i execute the request i get 404d, why is that? i tried curl and still, could someone give me a hand?

// Controllers/AuthAPIController.cs
using Microsoft.AspNetCore.Mvc;

using Services.AuthAPI.Models.DTO;
using Services.AuthAPI.Service.IService;

namespace Services.AuthAPI.Controllers {
    [Route("api/auth")]
    [ApiController]
    public class AuthAPIController : ControllerBase {
        private readonly IAuthService _authService;
        protected ResponseDTO _res;

        public AuthAPIController(IAuthService authService) {
            _authService = authService;
            _res = new();
        }

        [HttpPost("register")]
        public async Task<IActionResult> Register([FromBody] RegistrationRequestDTO model) {
            var errorMsg = await _authService.Register(model);

            if (!string.IsNullOrEmpty(errorMsg)) {
                _res.IsSuccess = false;
                _res.Message = errorMsg;

                return BadRequest(_res);
            }

            return Ok(_res);
        }

        [HttpPost("login")]
        public async Task<IActionResult> Login() {
            return Ok();
        }
    }
}
image.png
Was this page helpful?