From 1d3f929986d947058e79a466f35ccd84730c0442 Mon Sep 17 00:00:00 2001 From: Jeas0001 Date: Mon, 24 Mar 2025 09:43:15 +0100 Subject: [PATCH] Added userid to the route for get devices --- backend/Api/Controllers/DeviceController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/Api/Controllers/DeviceController.cs b/backend/Api/Controllers/DeviceController.cs index b1109e8..d936fdb 100644 --- a/backend/Api/Controllers/DeviceController.cs +++ b/backend/Api/Controllers/DeviceController.cs @@ -20,7 +20,7 @@ namespace Api.Controllers } [Authorize] - [HttpGet] + [HttpGet("{userId}")] public async Task GetDevices(int userId) { List devices = await _dbAccess.ReadDevices(userId);