feat(enum) penambahan endpoint limit type
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
parent
afbf22cc03
commit
321d13568f
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue