Skip to content

Commit

Permalink
Merge pull request #117 from wkambale/hotfix-add-back-api-url
Browse files Browse the repository at this point in the history
HotFix: Add back API_URL
  • Loading branch information
Musacoli authored Jul 29, 2024
2 parents 684045e + 53e1063 commit 1f12860
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/js/scripts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Define the shareCard function globally

function shareCard(id) {
const API_URL = `https://dashboard.missingpersonsug.org/api/victims?per_page=1000`;


// Define the shareCard function globally
function shareCard(id) {
fetch(API_URL)
.then((response) => response.json())
.then(responseBody => {
Expand Down

0 comments on commit 1f12860

Please sign in to comment.