in scripts/lua/management/routes/apis.lua [176:188]
function _M.requestHandler(dataStore)
local requestMethod = ngx.req.get_method()
ngx.header.content_type = "application/json; charset=utf-8"
if requestMethod == "GET" then
getAPIs(dataStore)
elseif requestMethod == 'POST' or requestMethod == 'PUT' then
addAPI(dataStore)
elseif requestMethod == "DELETE" then
deleteAPI(dataStore)
else
request.err(400, "Invalid verb.")
end
end