You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by me...@apache.org on 2020/08/30 09:07:31 UTC
[apisix] branch master updated: chore: restrict the apisix/admin
routers (#2130)
This is an automated email from the ASF dual-hosted git repository.
membphis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new ff90202 chore: restrict the apisix/admin routers (#2130)
ff90202 is described below
commit ff902025668f77ded38a3c766b493ad21ae6298b
Author: 罗泽轩 <sp...@gmail.com>
AuthorDate: Sun Aug 30 17:07:20 2020 +0800
chore: restrict the apisix/admin routers (#2130)
1. /stream_routes needs to be ended with '/'
2. /list only needs GET method
---
apisix/admin/init.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apisix/admin/init.lua b/apisix/admin/init.lua
index 71cb25e..99a41c3 100644
--- a/apisix/admin/init.lua
+++ b/apisix/admin/init.lua
@@ -267,13 +267,13 @@ local uri_route = {
handler = run,
},
{
- paths = [[/apisix/admin/stream_routes*]],
+ paths = [[/apisix/admin/stream_routes/*]],
methods = {"GET", "PUT", "POST", "DELETE", "PATCH"},
handler = run_stream,
},
{
paths = [[/apisix/admin/plugins/list]],
- methods = {"GET", "PUT", "POST", "DELETE"},
+ methods = {"GET"},
handler = get_plugins_list,
},
{