Ghost/core/client/models/settings.js

15 lines
420 B
JavaScript
Raw Normal View History

/*global window, document, Ghost, $, _, Backbone */
2013-06-08 09:05:40 +04:00
(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',
2013-11-21 22:44:18 +04:00
id: '0',
parse: function (resp) {
resp.permalinks = resp.permalinks === "/:slug/" ? "" : "1";
return resp;
}
2013-06-08 09:05:40 +04:00
});
2013-11-21 22:44:18 +04:00
}());