Ghost/core/server/adapters/scheduling/index.js
2019-08-15 11:57:45 +08:00

24 lines
835 B
JavaScript

const postScheduling = require('./post-scheduling');
/**
* @description Initialise all scheduler modules.
*
* We currently only support post-scheduling: publish posts/pages when scheduled.
*
* @param {Object} options
* {
* schedulerUrl: [String] Remote scheduler domain.
* active: [String] Name of the custom scheduler.
* apiUrl: [String] Target Ghost API url.
* internalPath: [String] Folder path where to find the default scheduler.
* contentPath: [String] Folder path where to find custom schedulers.
* }
*
* @TODO: Simplify the passed in options.
*/
exports.init = function init(options) {
options = options || {};
return postScheduling.init(options);
};