@@ -51,16 +51,12 @@ export class BusinessListingsController {
|
||||
this.logger.info(`Save Listing`);
|
||||
return this.listingsService.updateBusinessListing(listing.id, listing);
|
||||
}
|
||||
@Delete(':id')
|
||||
@Delete('listing/:id')
|
||||
deleteById(@Param('id') id: string) {
|
||||
this.listingsService.deleteListing(id);
|
||||
}
|
||||
// @Get('states/all')
|
||||
// getStates(): any {
|
||||
// return this.listingsService.getStates();
|
||||
// }
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@Delete('favorites/:id')
|
||||
@Delete('favorite/:id')
|
||||
deleteFavorite(@Request() req, @Param('id') id: string) {
|
||||
this.listingsService.deleteFavorite(id, req.user as JwtUser);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user