Merge pull request #1569 from edx/dhm/restful_course

restful course_info access
This commit is contained in:
Don Mitchell
2013-11-13 10:46:16 -08:00
14 changed files with 291 additions and 275 deletions

View File

@@ -4,7 +4,7 @@ define(["backbone", "js/models/course_update"], function(Backbone, CourseUpdateM
collection of updates as [{ date : "month day", content : "html"}]
*/
var CourseUpdateCollection = Backbone.Collection.extend({
url : function() {return this.urlbase + "course_info/updates/";},
// instantiator must set url
model : CourseUpdateModel
});

View File

@@ -1,6 +1,6 @@
define(["backbone"], function(Backbone) {
var ModuleInfo = Backbone.Model.extend({
url: function() {return "/module_info/" + this.id;},
urlRoot: "/xblock",
defaults: {
"id": null,