mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 17:32:15 +03:00
523be3879f
no-issue
24 lines
835 B
JavaScript
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);
|
|
};
|