removed crypto delete and update

This commit is contained in:
Kevsl 2024-06-09 01:10:47 +02:00
parent 5d2688c287
commit 36a53c2f2a

View File

@ -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);
}
} }