mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -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
|