This commit is contained in:
[Valentino Heman Budiarto] 2026-05-29 20:39:34 +07:00
parent 720a36642c
commit d899558e12

View File

@ -36,7 +36,7 @@ export default function HistoryPage() {
const fetchHistory = async (token: string) => { const fetchHistory = async (token: string) => {
try { try {
// PERBAIKAN: Ubah /api/bookings menjadi /api/my-bookings // PERBAIKAN: Ubah /api/bookings menjadi /api/my-bookings
const response = await axios.get("http://172.17.172.17:8080/api/bookings/history", { const response = await axios.get("http://172.17.172.17:8080/api/my-bookings", {
headers: { Authorization: `Bearer ${token}` }, headers: { Authorization: `Bearer ${token}` },
}); });
setBookings(response.data.data || []); setBookings(response.data.data || []);