chore: add show in silder for the service
This commit is contained in:
@@ -128,12 +128,27 @@ export class DanakServicesController {
|
||||
return this.danakServicesService.toggleServiceStatus(paramDto);
|
||||
}
|
||||
|
||||
@AuthGuards()
|
||||
@PermissionsDec(PermissionEnum.SERVICES)
|
||||
@ApiOperation({ summary: "toggle status of danak service slider => admin route" })
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Post("toggle-slider/:id")
|
||||
toggleServiceSlider(@Param() paramDto: ParamDto) {
|
||||
return this.danakServicesService.toggleServiceSlider(paramDto);
|
||||
}
|
||||
|
||||
@ApiOperation({ summary: "get services for user side" })
|
||||
@Get("suggested")
|
||||
getDanakSuggestServices() {
|
||||
return this.danakServicesService.getDanakSuggestServices();
|
||||
}
|
||||
|
||||
@ApiOperation({ summary: "get danak service slider" })
|
||||
@Get("slider")
|
||||
getDanakServicesSlider() {
|
||||
return this.danakServicesService.getDanakServicesSlider();
|
||||
}
|
||||
|
||||
@ApiOperation({ summary: "get danak service by id" })
|
||||
@AuthGuards()
|
||||
@Get(":id")
|
||||
|
||||
Reference in New Issue
Block a user