feat: add room dashboard with KPI bar and floor grid
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
7
frontend/Frontend-Hotel/src/services/roomService.js
Normal file
7
frontend/Frontend-Hotel/src/services/roomService.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import api from "./api";
|
||||
|
||||
export const getRoomsWithStatus = () => api.get("/rooms/status");
|
||||
export const updateRoomStatus = (id, status) => api.put(`/rooms/${id}/status`, { status });
|
||||
export const getDashboardKPIs = () => api.get("/dashboard/kpis");
|
||||
export const getWeeklyRevenue = () => api.get("/dashboard/weekly-revenue");
|
||||
export const getTodayArrivals = () => api.get("/dashboard/today-arrivals");
|
||||
Reference in New Issue
Block a user