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

View File

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