Skip to content

Commit

Permalink
Fresh start
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 25, 2018
0 parents commit 3ab2138
Show file tree
Hide file tree
Showing 68 changed files with 18,559 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
frontend/node_modules/
frontend/my/node_modules/
frontend/.cache/
frontend/yarn.lock
.vscode/

config.toml
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
BIN := listmonk

HASH := $(shell git rev-parse --short HEAD)
COMMIT_DATE := $(shell git show -s --format=%ci ${HASH})
BUILD_DATE := $(shell date '+%Y-%m-%d %H:%M:%S')
VERSION := ${HASH} (${COMMIT_DATE})

build:
go build -o ${BIN} -ldflags="-X 'main.buildVersion=${VERSION}' -X 'main.buildDate=${BUILD_DATE}'"

test:
go test

clean:
go clean
- rm -f ${BIN}
13 changes: 13 additions & 0 deletions admin.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
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()})
}
Loading

0 comments on commit 3ab2138

Please sign in to comment.