Removed api/ from route

This commit is contained in:
Jeas0001 2025-03-20 09:46:15 +01:00
parent 928c4e7a42
commit 743b3d6941
4 changed files with 13 additions and 4 deletions

View File

@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Authorization;
namespace Api.Controllers
{
[ApiController]
[Route("api/[controller]")]
[Route("[controller]")]
public class DeviceController : Controller
{
private readonly DBContext _context;

View File

@ -3,10 +3,10 @@
namespace Api.Controllers
{
[ApiController]
[Route("api/[controller]")]
[Route("[controller]")]
public class HealthController : Controller
{
[HttpGet]
public async Task<IActionResult> Heath() { return Ok(); }
public async Task<IActionResult> Health() { return Ok(); }
}
}

View File

@ -10,7 +10,7 @@ using Microsoft.AspNetCore.Authorization;
namespace Api.Controllers
{
[ApiController]
[Route("api/[controller]")]
[Route("[controller]")]
public class UserController : Controller
{
private readonly DBContext _context;

View File

@ -0,0 +1,9 @@
namespace Api.Models
{
public class Login
{
public string Login { get; set; }
public string Password { get; set; }
}
}