We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0ad9a commit 1769418Copy full SHA for 1769418
internal/handlers/event.go
@@ -291,6 +291,13 @@ func (h *EventHandler) GetEventAttendees(c *gin.Context) {
291
c.JSON(http.StatusOK, gin.H{"attendees": attendees})
292
}
293
294
+// @Summary Get public events
295
+// @Description Retrieve a list of all public events
296
+// @Tags Events
297
+// @Produce json
298
+// @Success 200 {object} map[string]interface{} "List of public events"
299
+// @Failure 500 {object} map[string]string "Internal server error"
300
+// @Router /api/v1/events/public [get]
301
func (h *EventHandler) GetPublicEvents(c *gin.Context) {
302
events, err := h.eventService.GetPublicEvents()
303
if err != nil {
0 commit comments