mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Removed unused authors input serializer
refs https://github.com/TryGhost/Ghost/issues/10354
- The serializer wasn't hooked up properly during the implementation (1a4497fc9a
). It is not possible to hook it back in now as that would introduce breaking change to now stable v2 API.
- v3 (canary) has is properly hooked in, so there should not be a problem going forward
This commit is contained in:
parent
bda4e0da70
commit
6ba6e9c307
1 changed files with 0 additions and 26 deletions
|
@ -1,26 +0,0 @@
|
|||
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:input:authors');
|
||||
const utils = require('../../index');
|
||||
|
||||
function setDefaultOrder(frame) {
|
||||
if (!frame.options.order) {
|
||||
frame.options.order = 'name asc';
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
browse(apiConfig, frame) {
|
||||
debug('browse');
|
||||
|
||||
if (utils.isContentAPI(frame)) {
|
||||
setDefaultOrder(frame);
|
||||
}
|
||||
},
|
||||
|
||||
read(apiConfig, frame) {
|
||||
debug('read');
|
||||
|
||||
if (utils.isContentAPI(frame)) {
|
||||
setDefaultOrder(frame);
|
||||
}
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue