codecombat/server/campaigns/campaign_status_handler.coffee
Sébastien Moratinos e7ca7c4c1a remove unused modules
2014-01-23 01:01:45 +01:00

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()