codecombat/server/campaigns/campaign_status_handler.coffee

14 lines
394 B
CoffeeScript
Raw Normal View History

CampaignStatus = require('./CampaignStatus')
Handler = require('../commons/Handler')
2014-01-03 13:32:13 -05:00
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()