mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 18:56:22 +00:00
Refactor device controller endpoint to use 'user' prefix in route path
This commit is contained in:
@ -60,7 +60,7 @@ export class DeviceController {
|
|||||||
}
|
}
|
||||||
@ApiBearerAuth()
|
@ApiBearerAuth()
|
||||||
@UseGuards(JwtAuthGuard)
|
@UseGuards(JwtAuthGuard)
|
||||||
@Get(':userUuid')
|
@Get('user/:userUuid')
|
||||||
async getDevicesByUser(@Param('userUuid') userUuid: string) {
|
async getDevicesByUser(@Param('userUuid') userUuid: string) {
|
||||||
try {
|
try {
|
||||||
return await this.deviceService.getDevicesByUser(userUuid);
|
return await this.deviceService.getDevicesByUser(userUuid);
|
||||||
|
Reference in New Issue
Block a user