mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 06:00:12 +02:00
renamed crypto search params
This commit is contained in:
parent
2985f19871
commit
372ac6fdfb
@ -28,8 +28,8 @@ export class CryptoController {
|
|||||||
getAllPromoCodes(@GetUser() user: User) {
|
getAllPromoCodes(@GetUser() user: User) {
|
||||||
return this.promoService.getCryptos(user.id);
|
return this.promoService.getCryptos(user.id);
|
||||||
}
|
}
|
||||||
@Get('/search/:id')
|
@Get('/search/:name')
|
||||||
searchCrypto(@GetUser() user: User, @Param('id') cryptoName: string) {
|
searchCrypto(@GetUser() user: User, @Param('name') cryptoName: string) {
|
||||||
return this.promoService.searchCryptos(user.id, cryptoName);
|
return this.promoService.searchCryptos(user.id, cryptoName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user