Skip to content

Commit 9ce25a7

Browse files
committed
fix root routes list
1 parent ea00269 commit 9ce25a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/jekyll-admin/server.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ class Server < Sinatra::Base
1818
end
1919

2020
get "/" do
21-
json ROUTES.map do |route|
22-
["#{route}_api", URI.join(base_url, "/_api/", route)]
23-
end.to_h
21+
json ROUTES.map { |r| ["#{r}_api", URI.join(base_url, "/_api/", r)] }.to_h
2422
end
2523

2624
# CORS preflight

0 commit comments

Comments
 (0)