mirror of
https://github.com/knadh/listmonk.git
synced 2025-01-07 23:12:04 +08:00
14 lines
273 B
Go
14 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()})
|
||
|
}
|