Skip to content

Commit

Permalink
fix status/list services
Browse files Browse the repository at this point in the history
  • Loading branch information
LdDl committed Oct 1, 2020
1 parent c6f7839 commit 52ddb1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ func (app *Application) StartHTTPServer() {
// ListWrapper Returns list of streams
func ListWrapper(app *Application) func(ctx *gin.Context) {
return func(ctx *gin.Context) {
ctx.JSON(200, app)
_, all := app.list()
ctx.JSON(200, all)
}
}

// StatusWrapper Returns statuses for list of streams
func StatusWrapper(app *Application) func(ctx *gin.Context) {
return func(ctx *gin.Context) {
_, all := app.list()
ctx.JSON(200, all)
ctx.JSON(200, app)
}
}

Expand Down

0 comments on commit 52ddb1b

Please sign in to comment.