This commit is contained in:
[Valentino Heman Budiarto]
2026-05-29 20:46:04 +07:00
parent d899558e12
commit e808f77248
7 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ export default function AddBookingPage() {
const fetchRooms = async () => {
try {
const token = localStorage.getItem("token");
const res = await axios.get("http://172.17.110.6:8080/api/rooms", {
const res = await axios.get("http://172.17.172.17:8080/api/rooms", {
headers: { Authorization: `Bearer ${token}` },
});
setRooms(res.data.data);
@@ -46,7 +46,7 @@ export default function AddBookingPage() {
const startISO = new Date(startTime).toISOString();
const endISO = new Date(endTime).toISOString();
await axios.post("http://172.17.110.6:8080/api/bookings", {
await axios.post("http://172.17.172.17:8080/api/bookings", {
room_id: parseInt(selectedRoomId),
start_time: startISO,
end_time: endISO,