Added userid to the route for get devices

This commit is contained in:
Jeas0001 2025-03-24 09:43:15 +01:00
parent edb5f9f3bc
commit 1d3f929986

View File

@ -20,7 +20,7 @@ namespace Api.Controllers
}
[Authorize]
[HttpGet]
[HttpGet("{userId}")]
public async Task<IActionResult> GetDevices(int userId)
{
List<Device> devices = await _dbAccess.ReadDevices(userId);