renamed crypto search params

This commit is contained in:
Kevsl 2024-06-08 10:46:03 +02:00
parent 2985f19871
commit 372ac6fdfb

View File

@ -28,8 +28,8 @@ export class CryptoController {
getAllPromoCodes(@GetUser() user: User) {
return this.promoService.getCryptos(user.id);
}
@Get('/search/:id')
searchCrypto(@GetUser() user: User, @Param('id') cryptoName: string) {
@Get('/search/:name')
searchCrypto(@GetUser() user: User, @Param('name') cryptoName: string) {
return this.promoService.searchCryptos(user.id, cryptoName);
}