stackpress
Version:
Incept is a content management framework.
18 lines (17 loc) • 528 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = plugin;
const events_js_1 = __importDefault(require("./events.js"));
function plugin(ctx) {
if (!ctx.config.has('email'))
return;
ctx.on('listen', (_req, _res, ctx) => {
if (!ctx.config.get('email'))
return;
ctx.use(events_js_1.default);
});
}
;