Skip to content

Commit

Permalink
Add new api subdomain with cors enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tdickman committed Apr 27, 2019
1 parent 7d8e8ca commit e92a0e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h2>Where is the data from?</h2>
incorrect, and we'll do our best to fix
it.</p>
<h2>API</h2>
<p>An api is available at <a href="https://www.crypto51.app/coins.json">this url</a>.
<p>An api is available at <a href="https://api.crypto51.app/coins.json">this url</a>.
Please note this api is subject to change, but we will try to limit any
disruptions.</p>
<h2>Open Source</h2>
Expand Down
3 changes: 3 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ if [ "$1" != "noprompt" ]; then
read -p "Please check the output and then press [ENTER] to continue"
fi
# gsutil defacl set public-read gs://www.crypto51.app
# gsutil defacl set public-read gs://api.crypto51.app
gsutil -h "Cache-Control:public, max-age=600" -m rsync -d -r dist/ gs://www.crypto51.app/
gsutil -h "Cache-Control:public, max-age=600" cp dist/coins.json gs://api.crypto51.app/
gsutil -h "Cache-Control:public, max-age=600" cp dist/coins.json gs://api.crypto51.app/history/`date +%Y/%m/%d/%H-%M`.json

0 comments on commit e92a0e8

Please sign in to comment.