codecombat/server/handlers/campaign_status.coffee

16 lines
451 B
CoffeeScript
Raw Normal View History

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