mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
13 lines
394 B
CoffeeScript
13 lines
394 B
CoffeeScript
CampaignStatus = require('./CampaignStatus')
|
|
Handler = require('../commons/Handler')
|
|
|
|
CampaignStatusHandler = class CampaignStatusHandler extends Handler
|
|
modelClass: CampaignStatus
|
|
editableProperties: ['levelStatuses']
|
|
postEditableProperties: ['campaign', 'user']
|
|
|
|
post: (req, res) ->
|
|
req.body.user = req.user._id
|
|
super(req, res)
|
|
|
|
module.exports = new CampaignStatusHandler()
|