Stone.js API
    Preparing search index...
    • A method decorator for defining a route that responds to any HTTP method.

      Parameters

      • path: string | string[]

        The route path for the endpoint.

      • Optionaloptions: AnyOptions

        Optional configuration for the route.

      Returns MethodDecorator

      A method decorator configured for all HTTP methods.

      @Any('/resource')
      handleAnyMethod() {
      return 'Handled any HTTP method';
      }