Skip to content

Commit

Permalink
commit forgotten file
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jan 11, 2025
1 parent 13018da commit af5850b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions www/data/exchange-rates.spt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[---]
rates = dict(website.db.all("""
SELECT target_currency, rate
FROM currency_exchange_rates
WHERE source_currency = 'EUR'
ORDER BY target_currency
"""))
response.headers[b'Cache-Control'] = b'public, max-age=3600'
[---] application/json
{
"base": "EUR",
"rates": rates
}

0 comments on commit af5850b

Please sign in to comment.