hanqingwu commented on issue #10945: URL: https://github.com/apache/apisix/issues/10945#issuecomment-1976226845
my test ``` curl "http://127.0.0.1:9180/apisix/admin/consumers" -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "username": "jack", "plugins": { "serverless-post-function": { "functions" : ["return function(conf, ctx) ngx.say(\"serverless-post-function-consumer\"); end"] }, "key-auth": { "key": "auth-one" } } }' ``` ``` curl -i http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d ' { "uri": "/ip", "name": "abcd", "plugins": { "serverless-post-function": { "functions" : ["return function(conf, ctx) ngx.say(\"serverless-post-function-route\"); end"] }, "key-auth": { } }, "upstream": { "nodes": [ { "host": "httpbin.org", "port": 80, "weight": 1 } ], "type": "roundrobin", }, "status": 1 }' ``` ``` curl http://127.0.0.2:9080/ip -H 'apikey: auth-one' -i serverless-post-function-consumer ``` -- 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]
