added features and fixes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user