added offers by crypto id

This commit is contained in:
Kevsl 2024-06-19 14:00:36 +02:00
parent 161ee39828
commit 9b4194f618

View File

@ -29,7 +29,7 @@ export class OfferController {
getAllOffers(@GetUser() user: User) {
return this.offerService.getOffers(user.id);
}
@Get('/search/:id')
@Get('/crypto/:id')
searchOfferByCryptoId(@GetUser() user: User, @Param('id') cryptoId: string) {
return this.offerService.getOffersByCryptoId(user.id, cryptoId);
}