From 57c4a899d179ab3c5c2655dd48fa57d201afafb6 Mon Sep 17 00:00:00 2001 From: faris Aljohari <83524184+farisaljohari@users.noreply.github.com> Date: Sun, 2 Jun 2024 15:06:39 +0300 Subject: [PATCH] Refactor device controller endpoint to use 'user' prefix in route path --- src/device/controllers/device.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/controllers/device.controller.ts b/src/device/controllers/device.controller.ts index 1e9aa5d..3276e39 100644 --- a/src/device/controllers/device.controller.ts +++ b/src/device/controllers/device.controller.ts @@ -60,7 +60,7 @@ export class DeviceController { } @ApiBearerAuth() @UseGuards(JwtAuthGuard) - @Get(':userUuid') + @Get('user/:userUuid') async getDevicesByUser(@Param('userUuid') userUuid: string) { try { return await this.deviceService.getDevicesByUser(userUuid);