@replyke/express
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
15 lines (14 loc) • 384 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setCoreConfig = setCoreConfig;
exports.getCoreConfig = getCoreConfig;
let config;
function setCoreConfig(c) {
config = c;
}
function getCoreConfig() {
if (!config) {
throw new Error("Core config has not been set. Please call setCoreConfig() at startup.");
}
return config;
}