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
14 lines
423 B
JavaScript
14 lines
423 B
JavaScript
var urlService = require('../../../services/url'),
|
|
sitemapsUtils;
|
|
|
|
sitemapsUtils = {
|
|
getDeclarations: function () {
|
|
var baseUrl = urlService.utils.urlFor('sitemap_xsl', true);
|
|
baseUrl = baseUrl.replace(/^(http:|https:)/, '');
|
|
return '<?xml version="1.0" encoding="UTF-8"?>' +
|
|
'<?xml-stylesheet type="text/xsl" href="' + baseUrl + '"?>';
|
|
}
|
|
};
|
|
|
|
module.exports = sitemapsUtils;
|