return informational page with GET of root URL

This commit is contained in:
Ben Teitelbaum 2019-01-28 20:08:15 -08:00
parent 638dcdffdd
commit 414ede8602
2 changed files with 22 additions and 0 deletions

View file

@ -27,6 +27,13 @@ configure :test, :development do
end
end
#
# Return informational page
#
get '/' do
send_file File.join(settings.public_folder, 'index.html')
end
# GET /info
#
# returns:

15
public/index.html Normal file
View file

@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
<body>
<title>Blockstream Satellite API</title>
<h3>The Blockstream Satellite API conducts an auction for global message broadcast over Blockstream Satellite. Payments by Lightning.</h3>
<b>
<p>Learn more: <a href="https://blockstream.com/satellite-api-documentation/" target="_blank">Satellite API Docs</a></p>
<p>Contribute: <a href="https://github.com/blockstream/satellite-api" target="_blank">Satellite API Code</a></p>
</b>
<h4>To connect via Tor, prefix your API calls with our .onion URL. For example:</h4>
<p>http://sq65ekkwppmgka5pygi5vbp3l6jkpmxqnue5doiqhdobs55g7cyqsiyd.onion/api/orders/pending</p>
</body>
</html>