nest
    Preparing search index...

    Function AutoResourceController

    • This automatically wires the resource controller and its defined methods to the corresponding HTTP operation. It infers all details of the controller class and its methods from method names. The classes with this decorator does not need method decorators.

      Returns ClassDecorator

      • ClassDecorator

      This controller will automatically create the the path, GET /product/:id.

       ;@AutoResourceController()
      export class ProductController {

      // This method does not need decorator
      findOneById(@Param("id") id:number){
      return []
      }
      }