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

13 lines
No EOL
350 B
CoffeeScript

LevelDraft = require('./LevelDraft')
Handler = require('../../commons/Handler')
LevelDraftHandler = class LevelDraftHandler extends Handler
modelClass: LevelDraft
editableProperties: ['level']
postEditableProperties: ['user']
post: (req, res) ->
req.body.user = req.user._id
super(req, res)
module.exports = new LevelDraftHandler()