Refactor device controller endpoint to use 'user' prefix in route path

This commit is contained in:
faris Aljohari
2024-06-02 15:06:39 +03:00
parent cc5e61a5f2
commit 57c4a899d1

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);