mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 18:31:57 +03:00
05729d2f29
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
15 lines
479 B
JavaScript
15 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;
|
|
};
|