mirror of
https://github.com/aditama-labs/nest-autocrud.git
synced 2024-11-21 19:06:21 +00:00
chore: sample override
This commit is contained in:
parent
94faa8329a
commit
bb23bd0db9
@ -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();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user