restructure the API and update the admin script

This commit is contained in:
ngn
2025-01-04 00:00:10 +03:00
parent 03586da8df
commit 26e8909998
34 changed files with 1699 additions and 983 deletions

View File

@ -1,10 +1,12 @@
all: server
GOSRCS = $(wildcard *.go) $(wildcard */*.go)
server: *.go routes/*.go database/*.go util/*.go config/*.go
go build -o $@ .
all: api.elf
test:
API_FRONTEND_URL=http://localhost:5173/ API_PASSWORD=test ./server
api.elf: $(GOSRCS)
go build -o $@
run:
API_DEBUG=true API_FRONTEND_URL=http://localhost:5173/ API_PASSWORD=test ./api.elf
format:
gofmt -s -w .