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