Stone.js API
    Preparing search index...
    • Post(path: string | string[], options?: PostOptions): MethodDecorator

      A method decorator for defining HTTP POST routes.

      Parameters

      • path: string | string[]

        The route path for the POST endpoint.

      • Optionaloptions: PostOptions

        Optional configuration for the route.

      Returns MethodDecorator

      A method decorator configured for a POST route.

      @Post('/create')
      createResource() {
      return 'Resource created';
      }