Skip to content

Commit

Permalink
add get request for get balances
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulgalimov committed Jul 20, 2023
1 parent 33da685 commit d08f3b7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/api/api.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,19 @@ export class ApiController {
private logger = new Logger(ApiController.name);
constructor(private readonly balancesService: BalancesService) {}

@Get('/balances')
private showBalancesGet() {
this.logger.log('Show balances get');
try {
return this.balancesService.showBalances();
} catch (err) {
this.logger.log(`Show balances Error ${err.message}`, err);
}
}

@Post('/balances')
private showBalances() {
this.logger.log('Show balances');
this.logger.log('Show balances post');
try {
return this.balancesService.showBalances();
} catch (err) {
Expand Down

0 comments on commit d08f3b7

Please sign in to comment.