added features and fixes

This commit is contained in:
2026-07-02 15:34:00 +00:00
parent eb5b7d55a4
commit 89f8381e2d
30 changed files with 1718 additions and 206 deletions
+3 -3
View File
@@ -21,9 +21,9 @@ func NewHandler(db *sql.DB, hub *gateway.Hub) *Handler {
}
func (h *Handler) RegisterRoutes(r chi.Router) {
r.Post("/{messageID}/reactions", h.Add)
r.Delete("/{messageID}/reactions/{emoji}", h.Remove)
r.Get("/{messageID}/reactions", h.List)
r.Post("/", h.Add)
r.Delete("/{emoji}", h.Remove)
r.Get("/", h.List)
}
type addReactionRequest struct {