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
@@ -11,7 +11,7 @@ export default function ManageRoomsPage() {
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);
@@ -33,7 +33,7 @@ export default function ManageRoomsPage() {
try {
const token = localStorage.getItem("token");
await axios.put(`http://172.17.110.6:8080/api/admin/rooms/${roomId}/status`,
await axios.put(`http://172.17.172.17:8080/api/admin/rooms/${roomId}/status`,
{ status: newStatus },
{ headers: { Authorization: `Bearer ${token}` } }
);