Replies: 1 comment
-
anyone know? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
For example, my plugin has this code
function _M.api() return { { methods = {"GET"}, uri = "/foo/bar", handler = foo_handler, }, } end
I'm able to access this route, but don't know how to access the configurations of my plugin in
foo_handler
Here's the schema
local schema = { type = "object", properties = { foo = {type = "string"}, bar = {type = "string"}, }, required = {"foo", "bar"}, }
Thanks for your help
Beta Was this translation helpful? Give feedback.
All reactions