mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
10 lines
341 B
CoffeeScript
10 lines
341 B
CoffeeScript
|
AnalyticsString = require './AnalyticsString'
|
||
|
Handler = require '../commons/Handler'
|
||
|
|
||
|
class AnalyticsStringHandler extends Handler
|
||
|
modelClass: AnalyticsString
|
||
|
jsonSchema: require '../../app/schemas/models/analytics_string'
|
||
|
hasAccess: (req) -> req.method in ['GET'] or req.user?.isAdmin()
|
||
|
|
||
|
module.exports = new AnalyticsStringHandler()
|