mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
12 lines
415 B
CoffeeScript
12 lines
415 B
CoffeeScript
CocoCollection = require 'collections/CocoCollection'
|
|
LevelSession = require 'models/LevelSession'
|
|
|
|
module.exports = class LevelSessionCollection extends CocoCollection
|
|
url: '/db/level.session'
|
|
model: LevelSession
|
|
|
|
fetchForCourseInstance: (courseInstanceID, options) ->
|
|
options = _.extend({
|
|
url: "/db/course_instance/#{courseInstanceID}/my-course-level-sessions"
|
|
}, options)
|
|
@fetch(options)
|