2026-04-23 20:59:39 +03:30
|
|
|
import { Controller, Get, Param } from '@nestjs/common'
|
2026-04-16 22:19:20 +03:30
|
|
|
import { AdminConsumersService } from './consumers.service'
|
2026-03-16 00:33:40 +03:30
|
|
|
|
|
|
|
|
@Controller('admin/consumers')
|
|
|
|
|
export class AdminUsersController {
|
2026-04-16 22:19:20 +03:30
|
|
|
constructor(private readonly usersService: AdminConsumersService) {}
|
2026-03-16 00:33:40 +03:30
|
|
|
|
|
|
|
|
@Get()
|
|
|
|
|
async findAll() {
|
|
|
|
|
return this.usersService.findAll()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Get(':id')
|
|
|
|
|
async findOne(@Param('id') id: string) {
|
|
|
|
|
return this.usersService.findOne(id)
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-23 20:59:39 +03:30
|
|
|
// @Post()
|
|
|
|
|
// async create(@Body() data: CreateConsumerDto) {
|
|
|
|
|
// return this.usersService.create(data)
|
|
|
|
|
// }
|
2026-03-16 00:33:40 +03:30
|
|
|
|
2026-04-23 20:59:39 +03:30
|
|
|
// @Patch(':id')
|
|
|
|
|
// async update(@Param('id') id: string, @Body() data: UpdateConsumerDto) {
|
|
|
|
|
// return this.usersService.update(id, data)
|
|
|
|
|
// }
|
2026-03-16 00:33:40 +03:30
|
|
|
}
|