29 Mei 2026

This commit is contained in:
[Valentino Heman Budiarto]
2026-05-29 18:55:54 +07:00
parent d2c6fb0d69
commit 5e005e8524
12 changed files with 29 additions and 23 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://localhost:8080/api/rooms", {
const res = await axios.get("http://172.17.110.6: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://localhost:8080/api/bookings", {
await axios.post("http://172.17.110.6:8080/api/bookings", {
room_id: parseInt(selectedRoomId),
start_time: startISO,
end_time: endISO,