business list
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Controller, Get, Post, Body, Param, Delete, Query } from '@nestjs/common';
|
||||
import { Controller, Get, Post, Body, Query } from '@nestjs/common';
|
||||
import { DPageService } from './dpage.service';
|
||||
import { LoginDto } from './dto/login.dto';
|
||||
import { UserDec } from '../../common/decorators/user.decorator';
|
||||
@@ -20,22 +20,22 @@ export class DpageController {
|
||||
}
|
||||
|
||||
@Get('business/list')
|
||||
findAll(@Query() dto :FindBusinessesDto) {
|
||||
findAll(@Query() dto: FindBusinessesDto) {
|
||||
return this.dpageService.findAll(dto);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
findOne(@Param('id') id: string) {
|
||||
return this.dpageService.findOne(+id);
|
||||
}
|
||||
// @Get(':id')
|
||||
// findOne(@Param('id') id: string) {
|
||||
// return this.dpageService.findOne(+id);
|
||||
// }
|
||||
|
||||
// @Patch(':id')
|
||||
// update(@Param('id') id: string, @Body() updateDpageDto: UpdateDpageDto) {
|
||||
// return this.dpageService.update(id, updateDpageDto);
|
||||
// }
|
||||
|
||||
@Delete(':id')
|
||||
remove(@Param('id') id: string) {
|
||||
return this.dpageService.remove(+id);
|
||||
}
|
||||
// @Delete(':id')
|
||||
// remove(@Param('id') id: string) {
|
||||
// return this.dpageService.remove(+id);
|
||||
// }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user