mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
15 lines
479 B
JavaScript
15 lines
479 B
JavaScript
|
var defaultChannels = require('../../server/controllers/frontend/config.channels.json');
|
||
|
|
||
|
// This is a function to get a fake or test channel
|
||
|
// It's currently based on the default config in Ghost itself
|
||
|
module.exports.getTestChannel = function getTestChannel(channelName) {
|
||
|
var channel = defaultChannels[channelName];
|
||
|
channel.name = channelName;
|
||
|
|
||
|
return channel;
|
||
|
};
|
||
|
|
||
|
module.exports.getDefaultChannels = function getDefaultChannels() {
|
||
|
return defaultChannels;
|
||
|
};
|