diff --git a/api/controllers/astra.go b/api/controllers/astra.go index b2721a9..161c3ec 100644 --- a/api/controllers/astra.go +++ b/api/controllers/astra.go @@ -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" diff --git a/api/controllers/events.go b/api/controllers/events.go index 700a780..fdaa4c8 100644 --- a/api/controllers/events.go +++ b/api/controllers/events.go @@ -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" diff --git a/api/controllers/mazevo.go b/api/controllers/mazevo.go index 3f6b254..5ad2d37 100644 --- a/api/controllers/mazevo.go +++ b/api/controllers/mazevo.go @@ -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" diff --git a/api/routes/astra.go b/api/routes/astra.go index 4920e61..af7f00b 100644 --- a/api/routes/astra.go +++ b/api/routes/astra.go @@ -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) diff --git a/api/routes/events.go b/api/routes/events.go index 7efb100..3027373 100644 --- a/api/routes/events.go +++ b/api/routes/events.go @@ -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) diff --git a/api/routes/mazevo.go b/api/routes/mazevo.go index ef40148..dad5269 100644 --- a/api/routes/mazevo.go +++ b/api/routes/mazevo.go @@ -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)