Skip to content

Commit

Permalink
output as just array
Browse files Browse the repository at this point in the history
Signed-off-by: ygelfand <[email protected]>
  • Loading branch information
ygelfand committed Feb 21, 2024
1 parent 2013c94 commit 559d4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func (app *Api) alerts(c *gin.Context) {
c.JSON(200, gin.H{"alerts": app.parsedAlerts()})
c.JSON(200, app.parsedAlerts())
}

func (app *Api) parsedAlerts() []string {
Expand Down

0 comments on commit 559d4d2

Please sign in to comment.