Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/controllers/astra.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
var astraCollection *mongo.Collection = configs.GetCollection("astra")

// @Id AstraEvents
// @Router /astra/{date} [get]
// @Router events/astra/{date} [get]
// @Description "Returns AstraEvent based on the input date"
// @Produce json
// @Param date path string true "date (ISO format) to retrieve astra events"
Expand Down
2 changes: 1 addition & 1 deletion api/controllers/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
var eventsCollection *mongo.Collection = configs.GetCollection("events")

// @Id events
// @Router /events/{date} [get]
// @Router /events/coursebook/{date} [get]
// @Description "Returns all sections with meetings on the specified date"
// @Produce json
// @Param date path string true "ISO date of the set of events to get"
Expand Down
2 changes: 1 addition & 1 deletion api/controllers/mazevo.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
var mazevoCollection *mongo.Collection = configs.GetCollection("mazevo")

// @Id MazevoEvents
// @Router /mazevo/{date} [get]
// @Router events/mazevo/{date} [get]
// @Description "Returns MazevoEvent based on the input date"
// @Produce json
// @Param date path string true "date (ISO format) to retrieve mazevo events"
Expand Down
2 changes: 1 addition & 1 deletion api/routes/astra.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func AstraRoute(router *gin.Engine) {
//All routes related to astra events come here
astraGroup := router.Group("/astra")
astraGroup := router.Group("events/astra")

astraGroup.OPTIONS("", controllers.Preflight)
astraGroup.GET(":date", controllers.AstraEvents)
Expand Down
2 changes: 1 addition & 1 deletion api/routes/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func EventsRoute(router *gin.Engine) {
// All routes related to sections come here
eventsGroup := router.Group("/events")
eventsGroup := router.Group("/events/coursebook")

eventsGroup.OPTIONS("", controllers.Preflight)
eventsGroup.GET(":date", controllers.Events)
Expand Down
2 changes: 1 addition & 1 deletion api/routes/mazevo.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

func MazevoRoute(router *gin.Engine) {
//All routes related to mazevo events come here
mazevoGroup := router.Group("/mazevo")
mazevoGroup := router.Group("events/mazevo")

mazevoGroup.OPTIONS("", controllers.Preflight)
mazevoGroup.GET(":date", controllers.MazevoEvents)
Expand Down
Loading