This commit is contained in:
2024-09-11 16:51:42 +02:00
parent 8a7e26d2b6
commit 60866473f7
15 changed files with 135 additions and 117 deletions

View File

@@ -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);
}