You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
761 B

import {
Controller,
Get,
Post,
Body,
Patch,
Param,
Delete,
} from '@nestjs/common';
import { WalletsTransactionsService } from './wallets-transactions.service';
import { CreateWalletsTransactionDto } from './dto/create-wallets-transaction.dto';
@Controller('wallets-transactions')
export class WalletsTransactionsController {
constructor(
private readonly walletsTransactionsService: WalletsTransactionsService,
) {}
@Get()
findAll() {
return this.walletsTransactionsService.findAll();
}
@Get(':id')
findOne(@Param('id') id: number) {
return this.walletsTransactionsService.findOne(id);
}
@Get('users/:id')
findByUser(@Param('id') id: number) {
return this.walletsTransactionsService.findByUser(id);
}
}