Stone.js API
    Preparing search index...
    • A method decorator for defining HTTP OPTIONS routes.

      Parameters

      • path: string | string[]

        The route path for the OPTIONS endpoint.

      • Optionaloptions: OptionsOptions

        Optional configuration for the route.

      Returns MethodDecorator

      A method decorator configured for an OPTIONS route.

      @Options('/resource')
      optionsResource() {
      return 'Options for resource';
      }