mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -05:00
15 lines
No EOL
404 B
CoffeeScript
15 lines
No EOL
404 B
CoffeeScript
winston = require('winston')
|
|
request = require('request')
|
|
LevelDraft = require('../models/LevelDraft')
|
|
Handler = require('./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() |