chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user