mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
d6fb21fa28
no issue - small fix, we already have the info, no need to look it up again
14 lines
393 B
JavaScript
14 lines
393 B
JavaScript
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;
|