mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
parent
91ab07d0d1
commit
8fbbd524df
@ -1,7 +1,7 @@
|
||||
const postScheduling = require('./post-scheduling');
|
||||
|
||||
/**
|
||||
* @description Initialise all scheduler modules.
|
||||
* @description Initialize all scheduler modules.
|
||||
*
|
||||
* We currently only support post-scheduling: publish posts/pages when scheduled.
|
||||
*
|
||||
|
@ -24,7 +24,7 @@ function hideValueIfSecret(setting) {
|
||||
|
||||
module.exports = {
|
||||
/**
|
||||
* Initialise the cache, used in boot and in testing
|
||||
* Initialize the cache, used in boot and in testing
|
||||
*/
|
||||
async init() {
|
||||
const settingsCollection = await models.Settings.populateDefaults();
|
||||
|
@ -119,7 +119,7 @@ module.exports = function setupSiteApp(options = {}) {
|
||||
|
||||
// Global handling for member session, ensures a member is logged in to the frontend
|
||||
siteApp.use(membersService.middleware.loadMemberSession);
|
||||
|
||||
|
||||
// /member/.well-known/* serves files (e.g. jwks.json) so it needs to be mounted before the prettyUrl mw to avoid trailing slashes
|
||||
siteApp.use('/members/.well-known', (req, res, next) => membersService.api.middleware.wellKnown(req, res, next));
|
||||
|
||||
@ -195,7 +195,7 @@ module.exports.reload = ({apiVersion}) => {
|
||||
router = siteRoutes({start: true, apiVersion});
|
||||
Object.setPrototypeOf(SiteRouter, router);
|
||||
|
||||
// re-initialse apps (register app routers, because we have re-initialised the site routers)
|
||||
// re-initialize apps (register app routers, because we have re-initialized the site routers)
|
||||
appService.init();
|
||||
|
||||
// connect routers and resources again
|
||||
|
Loading…
Reference in New Issue
Block a user