Skip to content

Commit 3ab2138

Browse files
committed
Fresh start
0 parents  commit 3ab2138

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+18559
-0
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
frontend/node_modules/
2+
frontend/my/node_modules/
3+
frontend/.cache/
4+
frontend/yarn.lock
5+
.vscode/
6+
7+
config.toml

Makefile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
BIN := listmonk
2+
3+
HASH := $(shell git rev-parse --short HEAD)
4+
COMMIT_DATE := $(shell git show -s --format=%ci ${HASH})
5+
BUILD_DATE := $(shell date '+%Y-%m-%d %H:%M:%S')
6+
VERSION := ${HASH} (${COMMIT_DATE})
7+
8+
build:
9+
go build -o ${BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'"
10+
11+
test:
12+
go test
13+
14+
clean:
15+
go clean
16+
- rm -f ${BIN}

admin.go

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package main
2+
3+
import (
4+
"net/http"
5+
6+
"github.com/labstack/echo"
7+
)
8+
9+
// handleGetStats returns a collection of general statistics.
10+
func handleGetStats(c echo.Context) error {
11+
app := c.Get("app").(*App)
12+
return c.JSON(http.StatusOK, okResp{app.Runner.GetMessengerNames()})
13+
}

0 commit comments

Comments
 (0)