Revert "Hide the /uptime endpoint in the docs."

This reverts commit 477f39a000.
This commit is contained in:
Mathias Meyer 2013-11-07 16:31:29 +01:00
parent 477f39a000
commit 1462df6a7e
2 changed files with 1 additions and 3 deletions

View File

@ -132,7 +132,6 @@ __END__
<h2><a href="#<%= endpoint['name'] %>"><%= endpoint['name'] %></a></h2> <h2><a href="#<%= endpoint['name'] %>"><%= endpoint['name'] %></a></h2>
<ul> <ul>
<% endpoint['routes'].each do |route| %> <% endpoint['routes'].each do |route| %>
<% next if route['scope'] == 'hidden' %>
<li> <li>
<a href="#<%= slug_for(route) %>"> <a href="#<%= slug_for(route) %>">
<i class="icon-<%= icon_for route['verb'] %>"></i> <i class="icon-<%= icon_for route['verb'] %>"></i>
@ -190,7 +189,6 @@ __END__
<%= docs_for endpoint %> <%= docs_for endpoint %>
<% end %> <% end %>
<% endpoint['routes'].each do |route| %> <% endpoint['routes'].each do |route| %>
<% next if route['scope'] == 'hidden' %>
<div class="route" id="<%= slug_for(route) %>"> <div class="route" id="<%= slug_for(route) %>">
<h3><%= route['verb'] %> <%= route['uri'] %></h3> <h3><%= route['verb'] %> <%= route['uri'] %></h3>
<% if route['scope'] %> <% if route['scope'] %>

View File

@ -3,7 +3,7 @@ require 'travis/api/app'
class Travis::Api::App class Travis::Api::App
class Endpoint class Endpoint
class Uptime < Endpoint class Uptime < Endpoint
get '/', scope: :hidden do get '/' do
begin begin
ActiveRecord::Base.connection.execute('select 1') ActiveRecord::Base.connection.execute('select 1')
[200, "OK"] [200, "OK"]