[feature] Add GET endpoint for single notification (#1719)

This commit is contained in:
tobi
2023-04-29 18:29:51 +02:00
committed by GitHub
parent fdd2487cfb
commit 8b1e2288d8
4 changed files with 145 additions and 0 deletions

View File

@ -56,5 +56,6 @@ func New(processor *processing.Processor) *Module {
func (m *Module) Route(attachHandler func(method string, path string, f ...gin.HandlerFunc) gin.IRoutes) {
attachHandler(http.MethodGet, BasePath, m.NotificationsGETHandler)
attachHandler(http.MethodGet, BasePathWithID, m.NotificationGETHandler)
attachHandler(http.MethodPost, BasePathWithClear, m.NotificationsClearPOSTHandler)
}