Moved get visitor password and get device for visitor password

This commit is contained in:
hannathkadher
2025-02-16 23:26:20 +04:00
parent b59230d5d8
commit 427a57501f
17 changed files with 185 additions and 45 deletions

View File

@ -224,17 +224,6 @@ export class DeviceController {
async getDevicesInGateway(@Param('gatewayUuid') gatewayUuid: string) {
return await this.deviceService.getDevicesInGateway(gatewayUuid);
}
@ApiBearerAuth()
@UseGuards(PermissionsGuard)
@Permissions('DEVICE_VIEW')
@Get()
@ApiOperation({
summary: ControllerRoute.DEVICE.ACTIONS.GET_ALL_DEVICES_SUMMARY,
description: ControllerRoute.DEVICE.ACTIONS.GET_ALL_DEVICES_DESCRIPTION,
})
async getAllDevices() {
return await this.deviceService.getAllDevices();
}
@ApiBearerAuth()
@UseGuards(PermissionsGuard)