mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
14 lines
379 B
CoffeeScript
14 lines
379 B
CoffeeScript
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
|