Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 8 additions & 13 deletions Public/js/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,16 @@ document.getElementById("clicksearch").addEventListener("click",function()

});

const update = document.querySelector('#update1_hospitalbed')

// updating data
update.addEventListener('click', => {
fetch('/dashboard/update/hospital_beds', {
method: 'put',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(),
})


// const update = document.querySelector('#update1')

// update.addEventListener('click', _ => {
// // Send PUT Request here
// fetch('/dashboard/update/beds', {
// method: 'put',
// headers: { 'Content-Type': 'application/json' },
// body: JSON.stringify(),
// })

// })
})



Expand Down