mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 18:15:52 -05:00
13 lines
333 B
CoffeeScript
13 lines
333 B
CoffeeScript
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()
|