Stone.js API
    Preparing search index...
    • Class decorator: shape what routes return, declaratively.

      @Resources() installs the route middleware that applies whatever a route declared under resource, so a handler returns its domain model and only what the resource allows leaves the application.

      Type Parameters

      • T extends ClassType = ClassType

      Parameters

      Returns ClassDecorator

      A class decorator.

      import { Resources } from '@stone-js/resources'

      @Resources({ registry: { user: userResource } })
      @StoneApp({ name: 'my-app' })
      export class Application {}