Added userid to the route for get devices
This commit is contained in:
parent
edb5f9f3bc
commit
1d3f929986
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user