chore: sample override

This commit is contained in:
Supan Adit Pratama 2024-11-02 01:15:35 +07:00
parent 94faa8329a
commit bb23bd0db9

View File

@ -1,7 +1,13 @@
import { CustomCRUDController } from '@aditama-labs/nest-autocrud/skeleton'; import { CustomCRUDController } from '@aditama-labs/nest-autocrud/skeleton';
import { Controller } from '@nestjs/common'; import { Controller, Get } from '@nestjs/common';
@Controller('example/custom') @Controller('example/custom')
export class CustomController extends CustomCRUDController({ export class CustomController extends CustomCRUDController({
uniqueIdentifier: 'username', uniqueIdentifier: 'username',
}) {} }) {
@Get('list')
async list(): Promise<any> {
console.log('Hello World');
return await super.list();
}
}