mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 06:00:12 +02:00
removed crypto delete and update
This commit is contained in:
parent
5d2688c287
commit
36a53c2f2a
@ -55,20 +55,4 @@ export class CryptoController {
|
|||||||
) {
|
) {
|
||||||
return this.promoService.buyCrypto(user.id, dto);
|
return this.promoService.buyCrypto(user.id, dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
@HttpCode(HttpStatus.OK)
|
|
||||||
@Patch('/update/:id')
|
|
||||||
editPromoCodeById(
|
|
||||||
@Param('id') cryptoId: string,
|
|
||||||
@Body() dto: CryptoDto,
|
|
||||||
@GetUser() user: User,
|
|
||||||
) {
|
|
||||||
return this.promoService.editCryptoById(user.id, cryptoId, dto);
|
|
||||||
}
|
|
||||||
|
|
||||||
@HttpCode(HttpStatus.NO_CONTENT)
|
|
||||||
@Delete('/delete/:id')
|
|
||||||
deletePromoCodeById(@Param('id') cryptoId: string, @GetUser() user: User) {
|
|
||||||
return this.promoService.deleteCryptoById(user.id, cryptoId);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user