You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/16 01:20:06 UTC

[GitHub] [apisix] rpei2022 edited a comment on issue #6620: bug: return internal server error for http request

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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org