gatex
    Preparing search index...

    Function IdParam

    • Sets the name of the ID parameter for repository routes that require an ID. Defaults to 'id' if not specified.

      Parameters

      • idParam: string

        The name of the route parameter (e.g., 'userId').

      Returns (target: any) => void

      A class decorator.

      @IdParam("postId") // Routes will be /posts/:postId
      class PostRepository implements IRepository { }