in scripts/lua/management/routes/tenants.lua [124:136]
function _M.requestHandler(dataStore)
local requestMethod = ngx.req.get_method()
ngx.header.content_type = "application/json; charset=utf-8"
if requestMethod == "GET" then
getTenants(dataStore)
elseif requestMethod == "PUT" or requestMethod == "POST" then
addTenant(dataStore)
elseif requestMethod == "DELETE" then
deleteTenant(dataStore)
else
request.err(400, "Invalid verb.")
end
end