feat:#51 added mapping for room schedule request

This commit is contained in:
Elmar Kresse
2024-08-17 18:10:46 +02:00
parent db86ae7206
commit 91d56493c8
7 changed files with 120 additions and 36 deletions

View File

@@ -199,7 +199,8 @@ func AddRoutes(services serviceModel.Service) {
roomParam := c.QueryParam("room")
to := c.QueryParam("to")
from := c.QueryParam("from")
roomSchedule, err := room.GetRoomSchedule(services.App, roomParam, from, to)
mapped := c.QueryParam("mapped")
roomSchedule, err := room.GetRoomSchedule(services.App, roomParam, from, to, mapped)
if err != nil {
slog.Error("Failed to get room schedule:", "error", err)
return c.JSON(http.StatusBadRequest, "Failed to get room schedule")