feat(enum) penambahan endpoint limit type
continuous-integration/drone/tag Build is passing Details

pull/2/head devel_9.2
ashar 2024-06-11 15:42:53 +07:00
parent afbf22cc03
commit 321d13568f
1 changed files with 6 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import { ApiTags } from '@nestjs/swagger';
import { Public } from 'src/core/guards'; import { Public } from 'src/core/guards';
import { STATUS } from 'src/core/strings/constants/base.constants'; import { STATUS } from 'src/core/strings/constants/base.constants';
import { ItemType } from 'src/modules/item-related/item-category/constants'; import { ItemType } from 'src/modules/item-related/item-category/constants';
import { LimitType } from 'src/modules/item-related/item/constants';
@ApiTags('configuration - constant') @ApiTags('configuration - constant')
@Controller('constant') @Controller('constant')
@ -19,4 +20,9 @@ export class ConstantController {
async categoryType(): Promise<any> { async categoryType(): Promise<any> {
return Object.values(ItemType); return Object.values(ItemType);
} }
@Get('item-limit-type')
async limitType(): Promise<any> {
return Object.values(LimitType);
}
} }