0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/frontend/services/card-assets/index.js

17 lines
482 B
JavaScript
Raw Normal View History

const debug = require('@tryghost/debug')('card-assets');
const themeEngine = require('../theme-engine');
const CardAssetService = require('./service');
let cardAssetService = new CardAssetService();
const initFn = async () => {
const cardAssetConfig = themeEngine.getActive().config('card_assets');
debug('initialising with config', cardAssetConfig);
await cardAssetService.load(cardAssetConfig);
};
module.exports = cardAssetService;
module.exports.init = initFn;