mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
13 lines
No EOL
350 B
CoffeeScript
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() |