codecombat/server/achievements/earned_achievement_handler.coffee

13 lines
334 B
CoffeeScript
Raw Normal View History

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'
2014-05-19 18:24:16 -04:00
module.exports = new EarnedAchievementHandler()