rpei2022 edited a comment on issue #6620:
URL: https://github.com/apache/apisix/issues/6620#issuecomment-1068627069
> > function _M.api()
> > return {
> > {
> > methods = {"GET"},
> > uris = {"/v1/plugin/example-plugin/hello"},
> > handler = hello,
> > }
> > }
> > end
>
> Please read the document carefully, it's not `uris` but `uri`.
Thanks for your reply, I just copy the code in the example-plugin.lua and
make small change(change the function name), because example-plugin.lua has the
following code, could you explain the difference?
function _M.control_api()
return {
{
methods = {"GET"},
uris = {"/v1/plugin/example-plugin/hello"},
handler = hello,
}
}
end
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]