From 36a53c2f2a300fc1216cf973c8d828f9aafc540b Mon Sep 17 00:00:00 2001 From: Kevsl Date: Sun, 9 Jun 2024 01:10:47 +0200 Subject: [PATCH] removed crypto delete and update --- src/crypto/crypto.controller.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/crypto/crypto.controller.ts b/src/crypto/crypto.controller.ts index 6099eb3..c7e94de 100644 --- a/src/crypto/crypto.controller.ts +++ b/src/crypto/crypto.controller.ts @@ -55,20 +55,4 @@ export class CryptoController { ) { 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); - } }