29 Mei 2026
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user