From bb23bd0db99135f947bf801990aeedbed1066db2 Mon Sep 17 00:00:00 2001 From: Supan Adit Pratama Date: Sat, 2 Nov 2024 01:15:35 +0700 Subject: [PATCH] chore: sample override --- src/example/custom/custom.controller.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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(); + } +}