update
Browse files
app.lua
CHANGED
|
@@ -14,7 +14,7 @@ if uri == '/' then -- uri为 / ,退出运行
|
|
| 14 |
ngx.exit(ngx.HTTP_OK)
|
| 15 |
end
|
| 16 |
|
| 17 |
-
local api_version, api_pxoxy_pass_url_indicator = uri:match("
|
| 18 |
|
| 19 |
ngx.say("api_version: ", api_version)
|
| 20 |
ngx.say("api_pxoxy_pass_url_indicator: ", api_pxoxy_pass_url_indicator)
|
|
|
|
| 14 |
ngx.exit(ngx.HTTP_OK)
|
| 15 |
end
|
| 16 |
|
| 17 |
+
local api_version, api_pxoxy_pass_url_indicator = uri:match("/?([^/]+)/?(.*)")
|
| 18 |
|
| 19 |
ngx.say("api_version: ", api_version)
|
| 20 |
ngx.say("api_pxoxy_pass_url_indicator: ", api_pxoxy_pass_url_indicator)
|