mirror of
https://github.com/Kevsl/crypto-exchange-api.git
synced 2025-07-09 14:00:12 +02:00
added offers by crypto id
This commit is contained in:
parent
161ee39828
commit
9b4194f618
@ -29,7 +29,7 @@ export class OfferController {
|
|||||||
getAllOffers(@GetUser() user: User) {
|
getAllOffers(@GetUser() user: User) {
|
||||||
return this.offerService.getOffers(user.id);
|
return this.offerService.getOffers(user.id);
|
||||||
}
|
}
|
||||||
@Get('/search/:id')
|
@Get('/crypto/:id')
|
||||||
searchOfferByCryptoId(@GetUser() user: User, @Param('id') cryptoId: string) {
|
searchOfferByCryptoId(@GetUser() user: User, @Param('id') cryptoId: string) {
|
||||||
return this.offerService.getOffersByCryptoId(user.id, cryptoId);
|
return this.offerService.getOffersByCryptoId(user.id, cryptoId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user