mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
cf36851265
replaces #41, #60 - update ember-suave and grunt-jscs to 3.0 - standardize Ember global de-structuring rules across app & tests
17 lines
360 B
JavaScript
17 lines
360 B
JavaScript
import Ember from 'ember';
|
|
|
|
const {isBlank, Mixin} = Ember;
|
|
|
|
export default Mixin.create({
|
|
buildURL(_modelName, _id, _snapshot, _requestType, query) {
|
|
let url = this._super(...arguments);
|
|
|
|
if (query && !isBlank(query.slug)) {
|
|
url += `slug/${query.slug}/`;
|
|
delete query.slug;
|
|
}
|
|
|
|
return url;
|
|
}
|
|
});
|