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
@@ -58,9 +58,9 @@ export default function CalendarViewPage() {
const token = localStorage.getItem("token");
// 2. FETCH DATA SCHEDULES BERSAMAAN DENGAN ROOMS & BOOKINGS
const [roomsRes, bookingsRes, schedulesRes] = await Promise.all([
axios.get("http://172.17.110.6:8080/api/rooms", { headers: { Authorization: `Bearer ${token}` } }),
axios.get("http://172.17.110.6:8080/api/bookings", { headers: { Authorization: `Bearer ${token}` } }),
axios.get("http://172.17.110.6:8080/api/schedules", { headers: { Authorization: `Bearer ${token}` } })
axios.get("http://172.17.172.17:8080/api/rooms", { headers: { Authorization: `Bearer ${token}` } }),
axios.get("http://172.17.172.17:8080/api/bookings", { headers: { Authorization: `Bearer ${token}` } }),
axios.get("http://172.17.172.17:8080/api/schedules", { headers: { Authorization: `Bearer ${token}` } })
]);
setRooms(roomsRes.data.data || []);