Permalink
Browse files

Update from `browser-template`

Refresh for cohort 024.
Also, ensure that starter code here is in sync with solution code on
`jquery-ajax-get-collection`.
  • Loading branch information...
caleb-pearce committed Mar 22, 2018
1 parent 1adb10c commit 054c8d1a9e56d9630cb37758247ec3c339e278e9
Showing with 9 additions and 1 deletion.
  1. +1 −1 assets/scripts/books/ui.js
  2. +8 −0 curl-scripts/books/index.sh
@@ -2,7 +2,7 @@

const onSuccess = function (data) {
console.table(data.books)

// clear content div, in case something was already there
$('#content').html('')

@@ -1,9 +1,17 @@
<<<<<<< 1adb10c068d6856d2f58cef93b830ec1b4ece1b3
curl --include --request GET "https://wdi-library-api.herokuapp.com/books"
=======
curl --include --request GET "https://ga-library-api.herokuapp.com/books"
>>>>>>> Update from `browser-template`

echo

# Alternatively
<<<<<<< 1adb10c068d6856d2f58cef93b830ec1b4ece1b3
# API="${API_ORIGIN:-https://wdi-library-api.herokuapp.com}"
=======
# API="${API_ORIGIN:-https://ga-library-api.herokuapp.com}"
>>>>>>> Update from `browser-template`
# URL_PATH="/books"
# curl "${API}${URL_PATH}" \
# --include \

0 comments on commit 054c8d1

Please sign in to comment.