"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppConfig = void 0;
const common_1 = require("@nestjs/common");
const __1 = require("..");
class AppConfig {
    static initialize(configService) {
        this.configService = configService;
    }
    static get(key) {
        if (!this.configService) {
            throw new __1.ErrorResponse('AppConfig not initialized', common_1.HttpStatus.BAD_REQUEST);
        }
        return this.configService.get(key);
    }
}
exports.AppConfig = AppConfig;
//# sourceMappingURL=AppConfig.config.js.map