mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
dcd3b192c1
refs #527
15 lines
420 B
JavaScript
15 lines
420 B
JavaScript
/*global window, document, Ghost, $, _, Backbone */
|
|
(function () {
|
|
'use strict';
|
|
//id:0 is used to issue PUT requests
|
|
Ghost.Models.Settings = Ghost.ProgressModel.extend({
|
|
url: Ghost.paths.apiRoot + '/settings/?type=blog,theme',
|
|
id: '0',
|
|
parse: function (resp) {
|
|
resp.permalinks = resp.permalinks === "/:slug/" ? "" : "1";
|
|
return resp;
|
|
}
|
|
});
|
|
|
|
}());
|