change: simple code style.

This commit is contained in:
Yuansheng 2019-08-04 23:58:00 +08:00 committed by YuanSheng Wang
parent 77e5b50591
commit ae0bdfb6d8

View File

@ -65,12 +65,12 @@ local uri_route = {
},
{
path = [[/apisix/admin/{res:routes|services|upstreams|consumers|ssl}]]
.. [[/{id:[\d\w_]+}]],
.. [[/{id}]],
handler = run,
method = {"GET", "PUT", "POST", "DELETE"},
},
{
path = [[/apisix/admin/schema/{res:plugins}/{id:[\d\w-]+}]],
path = [[/apisix/admin/schema/{res:plugins}/{id}]],
handler = run,
method = {"GET", "PUT", "POST", "DELETE"},
},
@ -87,7 +87,7 @@ local uri_route = {
},
{
path = [[/apisix/admin/{res:routes|services|upstreams|consumers|ssl}]]
.. [[/{id:[\d\w_]+}/{sub_path:.*}]],
.. [[/{id}/{sub_path:.*}]],
handler = run,
method = {"PATCH"},
},