Merge pull request #43 from SyncrowIOT/fix-device-user-issue

Refactor device controller endpoint to use 'user' prefix in route path
This commit is contained in:
faris Aljohari
2024-06-02 15:08:08 +03:00
committed by GitHub
+1 -1
View File
@@ -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);