mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 06:00:12 +02:00
added token sell to bank
This commit is contained in:
parent
61131388d5
commit
b89065e5c6
@ -38,6 +38,15 @@ export class CryptoController {
|
|||||||
return this.cryptoService.getCryptoHistory(user.id, cryptoId);
|
return this.cryptoService.getCryptoHistory(user.id, cryptoId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Post('/sell')
|
||||||
|
SellCrypto(
|
||||||
|
@Body()
|
||||||
|
dto: BuyCryptoDto,
|
||||||
|
@GetUser() user: User,
|
||||||
|
) {
|
||||||
|
return this.cryptoService.sellCryto(user.id, dto);
|
||||||
|
}
|
||||||
|
|
||||||
@HttpCode(HttpStatus.CREATED)
|
@HttpCode(HttpStatus.CREATED)
|
||||||
@Post('/create')
|
@Post('/create')
|
||||||
createPromoCode(
|
createPromoCode(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user