Files
2026-07-13 12:32:21 +08:00

20 lines
487 B
Lua

return {
["/method_without_exit"] = {
GET = function()
kong.response.set_status(201)
kong.response.set_header("x-foo", "bar")
ngx.print("hello")
end,
},
["/parsed_params"] = {
-- The purpose of the dummy filter is to let `parse_params`
-- of api/api_helpers.lua to be called twice.
before = function(self, db, helpers, parent)
end,
POST = function(self, db, helpers, parent)
kong.response.exit(200, self.params)
end,
},
}