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 2019/12/13 08:40:07 UTC

[GitHub] [incubator-apisix] moonming opened a new issue #969: bug: wrong code snippet in serverless's doc

moonming opened a new issue #969: bug: wrong code snippet in serverless's doc 
URL: https://github.com/apache/incubator-apisix/issues/969
 
 
   https://github.com/apache/incubator-apisix/blob/master/doc/plugins/serverless.md
   
   in the `How To Enable` section, curl's command is wrong, should be:
   ```
   curl -i http://127.0.0.1:9080/apisix/admin/routes/1 -X PUT -d '{
   	"uri": "/index.html",
   	"plugins": {
   		"serverless-pre-function": {
   			"phase": "rewrite",
   			"functions": ["return function() ngx.log(ngx.ERR, \"serverless pre function\"); end"]
   		}
   	},
   	"upstream": {
   		"type": "roundrobin",
   		"nodes": {
   			"39.97.63.215:80": 1
   		}
   	}
   }'
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services