codecombat/server/achievements/earned_achievement_handler.coffee
2014-06-02 20:29:12 +02:00

12 lines
334 B
CoffeeScript

mongoose = require('mongoose')
EarnedAchievement = require './EarnedAchievement'
Handler = require '../commons/Handler'
class EarnedAchievementHandler extends Handler
modelClass: EarnedAchievement
# Don't allow POSTs or anything yet
hasAccess: (req) ->
req.method is 'GET'
module.exports = new EarnedAchievementHandler()