mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
13 lines
431 B
JavaScript
13 lines
431 B
JavaScript
|
const debug = require('ghost-ignition').debug('services:routing:helpers:render-entries'),
|
||
|
formatResponse = require('./format-response'),
|
||
|
renderer = require('./renderer');
|
||
|
|
||
|
module.exports = function renderEntries(req, res) {
|
||
|
debug('renderEntries called');
|
||
|
return function renderEntries(result) {
|
||
|
// Format data 2
|
||
|
// Render
|
||
|
return renderer(req, res, formatResponse.entries(result));
|
||
|
};
|
||
|
};
|