diff options
| author | wikiapiserver | 2026-06-25 12:22:58 +0200 |
|---|---|---|
| committer | wikiapiserver | 2026-06-25 12:23:11 +0200 |
| commit | 6667426e24bba82ade4702cb8f85849bebec6077 (patch) | |
| tree | 66b3bce3db743d753067b5a5c65479131ae57007 /go.mod | |
| download | wikiapiserver-6667426e24bba82ade4702cb8f85849bebec6077.tar.gz | |
feat: initial wiki API server with account management
- HTTP API with JSON over configurable port (default 8080)
- Endpoints: POST /register, POST /login, POST /refresh, GET /health
- MariaDB storage with SHA-256 hashed credentials and tokens
- Token rotation on login and refresh
- Config loaded from config.json (not tracked in git)
- Graceful shutdown on SIGINT/SIGTERM
- Connection pool (25 max open, 10 idle, 5min max lifetime)
Diffstat (limited to 'go.mod')
| -rw-r--r-- | go.mod | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -0,0 +1,8 @@ +module wikiapiserver + +go 1.26.4 + +require ( + filippo.io/edwards25519 v1.2.0 // indirect + github.com/go-sql-driver/mysql v1.10.0 // indirect +) |
