navendu-pottekkat opened a new issue, #8980: URL: https://github.com/apache/apisix/issues/8980
### Current State The current [documentation of the serverless Plugin](https://apisix.apache.org/docs/apisix/plugins/serverless/#enabling-the-plugin) shows a simple example of a log function: ```lua return function() ngx.log(ngx.ERR, \"serverless pre function\"); end ``` ### Desired State This could be updated with a non-trivial example that could show the capabilities of the Plugin better: ``` "serverless-pre-function": { "phase": "rewrite", "functions" : [ "return function(conf, ctx) local core = require(\"apisix.core\") if not ngx.var.arg_name then local uri_args = core.request.get_uri_args(ctx) uri_args.name = \"world\" ngx.req.set_uri_args(uri_args) end 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]
