mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-11 00:02:19 -05:00
15 lines
451 B
CoffeeScript
15 lines
451 B
CoffeeScript
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()
|