Sets the name of the ID parameter for repository routes that require an ID. Defaults to 'id' if not specified.
The name of the route parameter (e.g., 'userId').
A class decorator.
@IdParam("postId") // Routes will be /posts/:postIdclass PostRepository implements IRepository { } Copy
@IdParam("postId") // Routes will be /posts/:postIdclass PostRepository implements IRepository { }
Sets the name of the ID parameter for repository routes that require an ID. Defaults to 'id' if not specified.