mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-02 17:59:14 +02:00
[#10] Move to new endpoint (room schedule for given duration)
This commit is contained in:
@@ -17,7 +17,7 @@ func GetRoomScheduleForDay(c echo.Context, app *pocketbase.PocketBase, room stri
|
||||
return c.JSON(http.StatusOK, events)
|
||||
}
|
||||
|
||||
func GetRoomScheduleForWeek(c echo.Context, app *pocketbase.PocketBase, room string, week string) error {
|
||||
events := db.GetRoomScheduleForWeek(app, room, week)
|
||||
func GetRoomSchedule(c echo.Context, app *pocketbase.PocketBase, room string, from string, to string) error {
|
||||
events := db.GetRoomSchedule(app, room, from, to)
|
||||
return c.JSON(http.StatusOK, events)
|
||||
}
|
||||
|
Reference in New Issue
Block a user