cirandas.net

ref: master

app/views/api/index.html.erb


EndPoints

<%= s_('api-playground|Try the %s').html_safe % link_to('API Playground', {:controller => 'api', :action => 'playground'}) %>
<%= endpoints.map do |endpoint| app = endpoint.options[:app].to_s unless app.blank? content_tag(:h2, app.split('::').last.to_s, title: app).html_safe + (content_tag :ul do endpoint.routes.map do |route| content_tag :li do content_tag(:strong, route.route_method) + ' ' + route.route_path.gsub(':version', content_tag(:b, route.route_version)).html_safe end end.safe_join "\n" end) end end.safe_join "\n" %>