0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/server/controllers/frontend/theme-paths.js

15 lines
393 B
JavaScript
Raw Normal View History

var config = require('../../config');
/**
* Returns the paths object of the active theme via way of a promise.
* @return {Promise} The promise resolves with the value of the paths.
*/
function getActiveThemePaths(req) {
var activeTheme = req.app.get('activeTheme'),
paths = config.paths.availableThemes[activeTheme];
return paths;
}
module.exports = getActiveThemePaths;