mirror of
https://github.com/knadh/listmonk.git
synced 2024-11-10 17:13:04 +08:00
13 lines
273 B
Go
13 lines
273 B
Go
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()})
|
|
}
|