add find business by slug

This commit is contained in:
2026-06-07 10:08:24 +03:30
parent b683dfdc7f
commit efabea5e7a
2 changed files with 13 additions and 0 deletions
@@ -16,6 +16,11 @@ import { ApiBearerAuth } from '@nestjs/swagger';
export class BusinessController {
constructor(private readonly businessService: BusinessService) { }
@Get('public/business/:slug')
getBusinessBySlug(@Param('slug') slug: string) {
return this.businessService.findBySlugOrFail(slug)
}
@Get('super-admin/business/list')
@UseGuards(SuperAdminAuthGuard)
findAll(@Query() dto: FindBusinessesDto) {