codecombat/server/analytics/analytics_string_handler.coffee
Matt Lott 3fd5f49220 Analytics data revamp
Add analytics per-day aggregation collection.
Add analytics strings collection.
Add per-day aggregation mongo insertion script.
Update campaign editor to use aggregation collection.
Update queries to use _id instead of created field.
2015-01-14 11:09:01 -08:00

9 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()