codecombat/server/handlers/file.coffee

14 lines
333 B
CoffeeScript
Raw Normal View History

2014-01-03 13:32:13 -05:00
File = require('../models/File')
Handler = require('./Handler')
FileHandler = class FileHandler extends Handler
modelClass: File
editableProperties: ['metadata']
hasAccess: (req) ->
req.method is 'GET'
# TODO: once we're building the clients, need special GET handler, search handler
module.exports = new FileHandler()