SlugStrategy
Defines the strategy for generating slugs from input strings. Slugs are URL-friendly versions of text that are commonly used for entity identifiers in URLs.
Example
- Extends:
InjectableStrategy
generate
method
(ctx: RequestContext, params: SlugGenerateParams) => string | Promise<string>Generates a slug from the input string.
Was this chapter helpful?