tsk-59: Added endpoint constant and made changes to handler

This commit is contained in:
phoenix
2025-12-30 19:30:23 -05:00
parent 8728fe9b60
commit aefa26199d
2 changed files with 14 additions and 0 deletions
@@ -86,3 +86,15 @@ func (e *EventResponseHandler) RecordResponse(w http.ResponseWriter, r *http.Req
RespondWithJSON(w, statusCode, &resp)
}
type GetMessageEventResponseFetchedResponse struct {
Message string `json:"message"`
Data []*message.MessageEventResponse `json:"data"`
}
func (e *EventResponseHandler) Fetch(w http.ResponseWriter, r *http.Request) {
var statusCode int
var resp GetMessageEventResponseFetchedResponse
RespondWithJSON(w, statusCode, &resp)
}