Skip to content

Commit

Permalink
Use own deployed API, part of #27
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddewie committed Jul 10, 2024
1 parent dd2e01c commit 300c9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/js/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function searchFor(term) {
hideSearchResults();
} else {
// or ref=...
fetch(`https://api.openrailwaymap.org/v2/facility?name=${term}`)
fetch(`${location.origin}/api/facility?name=${term}`)
.then(result => result.json())
.then(result => {
console.info('result', result, result.body)
Expand Down

0 comments on commit 300c9e5

Please sign in to comment.