fix(constant) penambahan endpoint constant payment type
continuous-integration/drone/tag Build is passing
Details
continuous-integration/drone/tag Build is passing
Details
parent
1ebf6a5c30
commit
aa3c8fa359
|
@ -4,6 +4,7 @@ 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';
|
import { LimitType } from 'src/modules/item-related/item/constants';
|
||||||
|
import { PaymentMethodType } from 'src/modules/transaction/payment-method/constants';
|
||||||
|
|
||||||
@ApiTags('configuration - constant')
|
@ApiTags('configuration - constant')
|
||||||
@Controller('constant')
|
@Controller('constant')
|
||||||
|
@ -25,4 +26,9 @@ export class ConstantController {
|
||||||
async limitType(): Promise<any> {
|
async limitType(): Promise<any> {
|
||||||
return Object.values(LimitType);
|
return Object.values(LimitType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Get('payment-type')
|
||||||
|
async paymentMethodType(): Promise<any> {
|
||||||
|
return Object.values(PaymentMethodType);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue