glutenfree
Version:
A profiler/loganalyzer for nginx/Cetrea Aw.
22 lines (17 loc) • 640 B
text/coffeescript
Mapper = require("../Mapper.js").mapper
class ActivityStatusMapper extends Mapper
constructor: ->
= "activitystatus"
schema: (method, action, endpoint, fun, args) ->
switch fun.toLowerCase()
when "listbyorgandtype"
# one argument, organization id
when "tabsviewbyorg"
applySchema: (method, action, endpoint, fun, schema) ->
switch fun.toLowerCase()
when "listbyorgandtype", "tabsviewbyorg"
else
winston.warn "no such fun", fun
exports.mapper = new ActivityStatusMapper()