Moving spaceapi endpoint and OAC door status checking here
This commit is contained in:
@@ -4,3 +4,8 @@
|
||||
<%= !@results.nil? %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>Door status:</b>
|
||||
<%= @status %>
|
||||
</p>
|
||||
|
||||
|
||||
11
app/views/space_api/index.html.erb
Normal file
11
app/views/space_api/index.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<h2>Space Status API
|
||||
<%= link_to 'JSON', space_api_path( :format => :json ), :class => 'btn' %>
|
||||
</h2>
|
||||
|
||||
<dl>
|
||||
<% @json.each do |key,value| %>
|
||||
<dt><%= key.humanize.capitalize %>:</dt>
|
||||
<dd><%= value %></dd>
|
||||
<% end %>
|
||||
</dl>
|
||||
|
||||
Reference in New Issue
Block a user