mirror of
https://github.com/getAlby/lndhub.go.git
synced 2026-02-02 03:34:19 +01:00
* Update Makefile * Optionally load test DB from env variable * Add option to soft-delete a user This allows users to be marked as deleted. An additional middleware checks if a user is deleted or deactivated and rejects requests for those as StatusUnauthorized. note: the middelware adds an additional DB query to load the user.
9 lines
181 B
Makefile
9 lines
181 B
Makefile
.env:
|
|
cp .env_example .env
|
|
|
|
build:
|
|
CGO_ENABLED=0 go build -o lndhub ./cmd/server
|
|
|
|
test:
|
|
go test -p 1 -v -covermode=atomic -coverprofile=coverage.out -cover -coverpkg=./... ./...
|