Remove index.html

This commit is contained in:
hakanensari 2013-04-29 23:55:33 +01:00
parent f26b2eca81
commit 2ca8c06af6
3 changed files with 1 additions and 135 deletions

View File

@ -28,7 +28,7 @@ helpers do
end
get '/' do
File.read File.join 'public', 'index.html'
redirect 'http://fixer.io'
end
get '/latest' do

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -1,134 +0,0 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Fixer is a JSON API for foreign exchange rates.">
<title>Fixer</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-36475354-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
body, html {
height: 100%;
}
body {
background: -linear-gradient(left, #fff 0%, #eee 100%);
background: -ms-linear-gradient(left, #fff 0%, #eee 100%);
background: -moz-linear-gradient(left, #fff 0%, #eee 100%);
background: -webkit-linear-gradient(left, #fff 0%, #eee 100%);
color: #333;
font: 15px/1.5 'Open Sans', sans-serif;
}
#wrapper {
margin: 0 auto;
max-width: 460px;
padding: 10px;
}
header {
padding: 3em 0;
}
header h1 {
font: bold 36px/1.25 'Open Sans', sans-serif;
}
p {
padding-bottom: 1em;
}
code {
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
background: #fff;
border: 1px solid #ccc;
display: block;
font-size: 11px;
margin-bottom: 2em;
padding: 1em;
}
code:before {
color: #006ce1;
content: '$ ';
}
footer {
color: #555;
font-size: 11px;
padding: 3em 0;
}
footer a {
color: #333;
}
</style>
</head>
<body>
<div id="wrapper">
<header>
<h1>Fixer: A JSON API for exchange rates</h1>
</header>
<p>
Get the latest foreign exchange reference rates, quoted against the
euro.
</p>
<code>
curl http://api.fixer.io/latest
</code>
<p>
Get historical rates for any day since 1999.
</p>
<code>
curl http://api.fixer.io/2000-01-03
</code>
<p>
Quote against a currency by setting the <strong>base</strong> parameter
in your request.
</p>
<code>
curl http://api.fixer.io/latest?base=USD
</code>
<p>
Request specific exchange rates by setting the
<strong>symbols</strong> or <strong>currencies</strong> parameter.
</p>
<code>
curl http://api.fixer.io/latest?symbols=USD,GBP
</code>
<p>
Make cross-domain <strong>JSONP</strong> requests.
</p>
<code>
curl http://api.fixer.io/latest?callback=myCallback
</code>
<p>
<strong>HTTPS</strong> endpoints are available.
</p>
<code>
curl https://api.fixer.io/latest
</code>
<p>
Exchange rates are usually updated by <strong>3pm CET</strong>.
</p>
<footer>
This API comes with absolutely no warranty.
</footer>
</div>
</body>
</html>