mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
17 lines
389 B
JavaScript
17 lines
389 B
JavaScript
|
/*global window, document, Ghost, $, Backbone, _ */
|
||
|
(function () {
|
||
|
"use strict";
|
||
|
|
||
|
Ghost.Model.Post = Backbone.Model.extend({
|
||
|
urlRoot: '/api/v0.1/posts/',
|
||
|
defaults: {
|
||
|
status: 'draft'
|
||
|
}
|
||
|
});
|
||
|
|
||
|
Ghost.Collection.Posts = Backbone.Collection.extend({
|
||
|
url: Ghost.settings.baseURL + '/posts',
|
||
|
model: Ghost.Model.Post
|
||
|
});
|
||
|
|
||
|
}());
|