update: add new route to get service with slug

This commit is contained in:
mahyargdz
2025-05-04 16:58:47 +03:30
parent d35ba6c331
commit acd005b6cd
5 changed files with 96 additions and 3 deletions
@@ -0,0 +1,11 @@
import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsString, Length } from "class-validator";
import { ServiceMessage } from "../../../common/enums/message.enum";
export class GetServiceBySlugParamDto {
@IsNotEmpty({ message: ServiceMessage.SLUG_REQUIRED })
@IsString({ message: ServiceMessage.SLUG_STRING })
@Length(3, 150, { message: ServiceMessage.SLUG_LENGTH })
@ApiProperty({ description: "slug of the service", example: "service-slug" })
slug: string;
}