Function LRPCAuth

  • This decorator is used to add Authorization to an endpoint

    Parameters

    • Optionalroles: string[]

      The roles to authorize

    Returns (target: any, name: string, descriptor: PropertyDescriptor) => void

    The authorization decorator