Skip to content

Commit bf948fc

Browse files
committed
update server.go with SectionsByRoomDetailed
1 parent e23bed4 commit bf948fc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

api/routes/events.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ func EventsRoute(router *gin.Engine) {
1313
eventsGroup.OPTIONS("", controllers.Preflight)
1414
eventsGroup.GET(":date", controllers.Events)
1515
eventsGroup.GET(":date/:building", controllers.EventsByBuilding)
16-
eventsGroup.GET(":date/:building/:room/sections", controllers.EventsByRoomSection)
16+
eventsGroup.GET(":date/:building/:room", controllers.EventsByRoom)
17+
eventsGroup.GET(":date/:building/:room/sections", controllers.SectionsByRoomDetailed)
1718
}

api/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ func EventsRoute(router *gin.Engine) {
116116
{
117117
eventsGroup.GET("/:date", controllers.Events)
118118
eventsGroup.GET("/:date/:building", controllers.EventsByBuilding)
119-
eventsGroup.GET("/:date/:building/:room/sections", controllers.EventsByRoomSection) // ✅ this one
119+
eventsGroup.GET("/:date/:building/:room/sections", controllers.EventsByRoom)
120+
eventsGroup.GET("/:date/:building/:room/sections", controllers.SectionsByRoomDetailed)
120121
}
121122
}

0 commit comments

Comments
 (0)