codecombat/app/models/Course.coffee

15 lines
379 B
CoffeeScript
Raw Normal View History

2015-08-29 10:15:35 -04:00
CocoModel = require './CocoModel'
schema = require 'schemas/models/course.schema'
module.exports = class Course extends CocoModel
@className: 'Course'
@schema: schema
urlRoot: '/db/course'
fetchForCourseInstance: (courseInstanceID, opts) ->
options = {
url: "/db/course_instance/#{courseInstanceID}/course"
}
_.extend options, opts
@fetch options