@evlt/apix
    Preparing search index...

    Function Route

    • Declares the route for a handler method.

      Parameters

      • methodName: string = ""

        The method segment (e.g., ":id", "new", etc.). If not provided, defaults to an empty method. If it's empty, an entity must be provided in the @EndpointGenerator.

      • httpMethod: HttpMethod = 'GET'

        The HTTP verb (default "GET").

      • priority: number = Infinity

        The route priority (default Infinity). Lower values indicate higher priority. Use this when you add multiple routes that could match the same path but you want one to have priority. E.g., /users/search and /users/:id, here, /users/search should have a higher priority because /users/:id is more generic and would match it otherwise.

      Returns (_value: Function, context: ClassMethodDecoratorContext) => void