mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
Improved naming of output serializer url util
This commit is contained in:
parent
68f469c78b
commit
40c280f6ac
@ -10,13 +10,13 @@ const {
|
||||
const events = require('../../lib/common/events');
|
||||
const externalRequest = require('../../../server/lib/request-external.js');
|
||||
const urlUtils = require('../../../shared/url-utils');
|
||||
const url = require('../../../server/api/endpoints/utils/serializers/output/utils/url');
|
||||
const outputSerializerUrlUtil = require('../../../server/api/endpoints/utils/serializers/output/utils/url');
|
||||
const labs = require('../../../shared/labs');
|
||||
const urlService = require('../url');
|
||||
|
||||
function getPostUrl(post) {
|
||||
const jsonModel = {};
|
||||
url.forPost(post.id, jsonModel, {options: {}});
|
||||
outputSerializerUrlUtil.forPost(post.id, jsonModel, {options: {}});
|
||||
return jsonModel.url;
|
||||
}
|
||||
module.exports = {
|
||||
|
Loading…
Reference in New Issue
Block a user