feat: emoji reactions for tasks and comments (#2196)
This PR adds reactions for tasks and comments, similar to what you can do on Gitea, GitHub, Slack and plenty of other tools. Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2196 Co-authored-by: kolaente <k@knt.li> Co-committed-by: kolaente <k@knt.li>
This commit is contained in:
@ -589,6 +589,15 @@ func registerAPIRoutes(a *echo.Group) {
|
||||
a.POST("/projects/:project/webhooks/:webhook", webhookProvider.UpdateWeb)
|
||||
a.GET("/webhooks/events", apiv1.GetAvailableWebhookEvents)
|
||||
}
|
||||
|
||||
reactionProvider := &handler.WebHandler{
|
||||
EmptyStruct: func() handler.CObject {
|
||||
return &models.Reaction{}
|
||||
},
|
||||
}
|
||||
a.GET("/:entitykind/:entityid/reactions", reactionProvider.ReadAllWeb)
|
||||
a.POST("/:entitykind/:entityid/reactions/delete", reactionProvider.DeleteWeb)
|
||||
a.PUT("/:entitykind/:entityid/reactions", reactionProvider.CreateWeb)
|
||||
}
|
||||
|
||||
func registerMigrations(m *echo.Group) {
|
||||
|
Reference in New Issue
Block a user