SO my problem is images that i upload are set in the database and saves in vs code in uploads folder but i dont know how to display them on front end i have tried something but furthur needs to know the procedure
<script>
axios
.get(
"http://localhost:8000/hotels")
.then((response) => {
console.log(response.data)
for (let i = 0; i < response.data.length; i++) {
document.getElementById('data').innerHTML+=`<tr class="odd">
<td class="dtr-control sorting_1" tabindex="0">${response.data[i].id}</td>
<td><img src='${response.data[i].image}'></td>
<td>${response.data[i].name}</td>
<td>${response.data[i].description}</td>
<td>${response.data[i].price}</td>
<td >${response.data[i].address}</td>`
}
})
.catch((error) => {
console.log(error);
});
</script>