mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
4265afe580
refs #9178 - we have to take care that we don't end up in circular dependencies - e.g. API requires UrlService and UrlService needs to require the API (for requesting data) - update the references - we would like to get rid of the utils folder, this is/was the most complicated change
8 lines
193 B
JavaScript
8 lines
193 B
JavaScript
var urlService = require('../../services/url');
|
|
|
|
function getRssUrl(data, absolute) {
|
|
return urlService.utils.urlFor('rss', {secure: data.secure}, absolute);
|
|
}
|
|
|
|
module.exports = getRssUrl;
|