Start Umbau zu postgres
This commit is contained in:
@@ -13,39 +13,39 @@ export class CommercialPropertyListingsController {
|
||||
}
|
||||
|
||||
|
||||
@Get(':id')
|
||||
findById(@Param('id') id:string): any {
|
||||
return this.listingsService.getCommercialPropertyListingById(id);
|
||||
}
|
||||
// @Get(':id')
|
||||
// findById(@Param('id') id:string): any {
|
||||
// return this.listingsService.getCommercialPropertyListingById(id);
|
||||
// }
|
||||
|
||||
@Post('search')
|
||||
find(@Body() criteria: any): any {
|
||||
return this.listingsService.findCommercialPropertyListings(criteria);
|
||||
}
|
||||
// @Post('search')
|
||||
// find(@Body() criteria: any): any {
|
||||
// return this.listingsService.findCommercialPropertyListings(criteria);
|
||||
// }
|
||||
|
||||
@Put('imageOrder/:id')
|
||||
async changeImageOrder(@Param('id') id:string,@Body() imageOrder: ImageProperty[]) {
|
||||
this.listingsService.updateImageOrder(id, imageOrder)
|
||||
}
|
||||
/**
|
||||
* @param listing creates a new listing
|
||||
*/
|
||||
@Post()
|
||||
save(@Body() listing: any){
|
||||
this.logger.info(`Save Listing`);
|
||||
this.listingsService.saveListing(listing)
|
||||
}
|
||||
// @Put('imageOrder/:id')
|
||||
// async changeImageOrder(@Param('id') id:string,@Body() imageOrder: ImageProperty[]) {
|
||||
// this.listingsService.updateImageOrder(id, imageOrder)
|
||||
// }
|
||||
// /**
|
||||
// * @param listing creates a new listing
|
||||
// */
|
||||
// @Post()
|
||||
// save(@Body() listing: any){
|
||||
// this.logger.info(`Save Listing`);
|
||||
// this.listingsService.saveListing(listing)
|
||||
// }
|
||||
|
||||
/**
|
||||
* @param id deletes a listing
|
||||
*/
|
||||
@Delete(':id')
|
||||
deleteById(@Param('id') id:string){
|
||||
this.listingsService.deleteCommercialPropertyListing(id)
|
||||
}
|
||||
@Delete('deleteAll')
|
||||
deleteAll(){
|
||||
this.listingsService.deleteAllcommercialListings()
|
||||
}
|
||||
// /**
|
||||
// * @param id deletes a listing
|
||||
// */
|
||||
// @Delete(':id')
|
||||
// deleteById(@Param('id') id:string){
|
||||
// this.listingsService.deleteCommercialPropertyListing(id)
|
||||
// }
|
||||
// @Delete('deleteAll')
|
||||
// deleteAll(){
|
||||
// this.listingsService.deleteAllcommercialListings()
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user