nest-autocrud/libs/autocrud/src/autocrud.controller.ts
Supan Adit Pratama b4bce2290e wip: controller
2024-10-26 15:35:59 +07:00

34 lines
480 B
TypeScript

import { Delete, Get, Param, Patch, Post, Put } from '@nestjs/common';
export class AutoCRUDController {
@Post()
create() {}
@Get(':id')
readSelected(@Param('id') id: string) {}
@Get()
readPagination() {}
@Get('list')
readEntire() {}
@Patch()
updatePartial() {}
@Patch('batch')
updatePartialBatch() {}
@Put()
updateEntire() {}
@Put('batch')
updateEntirePatch() {}
@Delete()
deleteSelected() {}
@Delete('batch')
deleteBatch() {}
}