diff --git a/src/example/custom/custom.controller.ts b/src/example/custom/custom.controller.ts index 7cea223..beb6dee 100644 --- a/src/example/custom/custom.controller.ts +++ b/src/example/custom/custom.controller.ts @@ -1,7 +1,13 @@ import { CustomCRUDController } from '@aditama-labs/nest-autocrud/skeleton'; -import { Controller } from '@nestjs/common'; +import { Controller, Get } from '@nestjs/common'; @Controller('example/custom') export class CustomController extends CustomCRUDController({ uniqueIdentifier: 'username', -}) {} +}) { + @Get('list') + async list(): Promise { + console.log('Hello World'); + return await super.list(); + } +}