glutenfree
Version:
A profiler/loganalyzer for nginx/Cetrea Aw.
29 lines (23 loc) • 788 B
text/coffeescript
Mapper = require("../Mapper.js").mapper
class OverlayMapper extends Mapper
constructor: ->
= "overlay"
schema: (method, action, endpoint, fun, args) ->
switch fun.toLowerCase()
when "specialty"
when "diagnosis"
when "editnote"
when "organizations"
when "state"
applySchema: (method, action, endpoint, fun, schema) ->
switch fun.toLowerCase()
when "byorganization","specialty","diagnosis","editnote","organizations","state"
else
winston.warn "no such fun", fun
exports.mapper = new OverlayMapper()