This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
codecombat/server/files/file_handler.coffee

14 lines
334 B
CoffeeScript
Raw Normal View History

File = require('./File')
Handler = require('../commons/Handler')
2014-01-03 10:32:13 -08:00
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()