mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
refs #5091 - Move all of the code to do with handling channels into one folder - Still keeping all the shared/simlar code for rendering etc inside weird frontend folder until I am sure what this will look like
14 lines
479 B
JavaScript
14 lines
479 B
JavaScript
var defaultChannels = require('../../server/controllers/channels/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;
|
|
};
|