Add crud endpoints for notifications (#801)
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/api/pulls/801 Co-authored-by: konrad <konrad@kola-entertainments.de> Co-committed-by: konrad <konrad@kola-entertainments.de>
This commit is contained in:
@ -521,6 +521,15 @@ func registerAPIRoutes(a *echo.Group) {
|
||||
a.PUT("/subscriptions/:entity/:entityID", subscriptionHandler.CreateWeb)
|
||||
a.DELETE("/subscriptions/:entity/:entityID", subscriptionHandler.DeleteWeb)
|
||||
|
||||
// Notifications
|
||||
notificationHandler := &handler.WebHandler{
|
||||
EmptyStruct: func() handler.CObject {
|
||||
return &models.DatabaseNotifications{}
|
||||
},
|
||||
}
|
||||
a.GET("/notifications", notificationHandler.ReadAllWeb)
|
||||
a.POST("/notifications/:notificationid", notificationHandler.UpdateWeb)
|
||||
|
||||
// Migrations
|
||||
m := a.Group("/migration")
|
||||
|
||||
|
Reference in New Issue
Block a user