diff --git a/src/device/controllers/device.controller.ts b/src/device/controllers/device.controller.ts index 936b8e1..136e94f 100644 --- a/src/device/controllers/device.controller.ts +++ b/src/device/controllers/device.controller.ts @@ -57,9 +57,9 @@ export class DeviceController { @ApiBearerAuth() @UseGuards(JwtAuthGuard) @Get(':deviceId') - async getDevicesByDeviceId(@Param('deviceId') deviceId: string) { + async getDeviceDetailsByDeviceId(@Param('deviceId') deviceId: string) { try { - return await this.deviceService.getDevicesByDeviceId(deviceId); + return await this.deviceService.getDeviceDetailsByDeviceId(deviceId); } catch (err) { throw new Error(err); } @@ -67,9 +67,9 @@ export class DeviceController { @ApiBearerAuth() @UseGuards(JwtAuthGuard) @Get(':deviceId/functions') - async getDevicesInstructionByDeviceId(@Param('deviceId') deviceId: string) { + async getDeviceInstructionByDeviceId(@Param('deviceId') deviceId: string) { try { - return await this.deviceService.getDevicesInstructionByDeviceId(deviceId); + return await this.deviceService.getDeviceInstructionByDeviceId(deviceId); } catch (err) { throw new Error(err); }