mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-22 13:42:33 +01:00
return informational page with GET of root URL
This commit is contained in:
parent
638dcdffdd
commit
414ede8602
2 changed files with 22 additions and 0 deletions
7
main.rb
7
main.rb
|
@ -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
15
public/index.html
Normal 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>
|
Loading…
Add table
Reference in a new issue