Skip to content

Commit

Permalink
Merge pull request #195 from ericand/relative_url
Browse files Browse the repository at this point in the history
relative url for api/session calls #77
  • Loading branch information
dannyvankooten authored Dec 17, 2018
2 parents d6f207d + 360ae96 commit 1b7ecfe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/src/js/lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Client.request = function(url, args) {
// trim leading slash from URL
url = (url[0] === '/') ? url.substring(1) : url;

return window.fetch(`/api/${url}`, args)
return window.fetch(`api/${url}`, args)
.then(handleRequestErrors)
.then(parseJSON)
.then(parseData)
Expand Down
28 changes: 21 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b7ecfe

Please sign in to comment.