mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
14 lines
318 B
JavaScript
14 lines
318 B
JavaScript
|
import BaseSerializer from './application';
|
||
|
import {camelize} from '@ember/string';
|
||
|
|
||
|
export default BaseSerializer.extend({
|
||
|
embed: true,
|
||
|
|
||
|
include(request) {
|
||
|
if (!request.queryParams.include) {
|
||
|
return;
|
||
|
}
|
||
|
return request.queryParams.include.split(',').map(camelize);
|
||
|
}
|
||
|
});
|