diff --git a/api/event/checkin.go b/api/event/checkin.go index b6ed5f7..e21be73 100644 --- a/api/event/checkin.go +++ b/api/event/checkin.go @@ -17,8 +17,6 @@ import ( // @Accept json // @Produce json // @Param event_id query string true "Event UUID" -// @Param X-Api-Version header string true "latest" -// @Param Authorization header string true "Bearer token" // @Success 200 {object} utils.RespStatus{data=service_event.CheckinResponse} "Successfully generated code" // @Failure 401 {object} utils.RespStatus{data=nil} "Missing User ID / Unauthorized" // @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Input" @@ -85,8 +83,6 @@ func (self *EventHandler) Checkin(c *gin.Context) { // @Tags Event // @Accept json // @Produce json -// @Param X-Api-Version header string true "latest" -// @Param Authorization header string true "Bearer token" // @Param payload body service_event.CheckinSubmitData true "Checkin Code Data" // @Success 200 {object} utils.RespStatus{data=nil} "Attendance marked successfully" // @Failure 400 {object} utils.RespStatus{data=nil} "Invalid Code or Input" diff --git a/api/event/handler.go b/api/event/handler.go index 4fabe8f..40bbc93 100644 --- a/api/event/handler.go +++ b/api/event/handler.go @@ -23,4 +23,5 @@ func ApiHandler(r *gin.RouterGroup) { r.POST("/join", eventHandler.Join) r.GET("/list", eventHandler.List) r.GET("/attendance", middleware.Permission(40), eventHandler.AttendanceList) + r.GET("/joined", eventHandler.Joined) }