Skip to content

Commit

Permalink
#routes_and_services
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Aug 24, 2023
1 parent 310c9ad commit 6e872d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kong/router/compat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,10 @@ end


local function split_routes_and_services_by_path(routes_and_services)
local routes_and_services_split = tb_new(#routes_and_services, 0)
local count = #routes_and_services
local routes_and_services_split = tb_new(count, 0)

for i = 1, #routes_and_services do
for i = 1, count do
split_route_by_path_into(routes_and_services[i], routes_and_services_split)
end

Expand Down

0 comments on commit 6e872d5

Please sign in to comment.