listmonk/admin.go

14 lines
273 B
Go
Raw Normal View History

2018-10-25 15:51:47 +02:00
package main
import (
"net/http"
"github.com/labstack/echo"
)
// handleGetStats returns a collection of general statistics.
func handleGetStats(c echo.Context) error {
app := c.Get("app").(*App)
return c.JSON(http.StatusOK, okResp{app.Runner.GetMessengerNames()})
}