summaryrefslogtreecommitdiff
path: root/go.mod
diff options
context:
space:
mode:
authorwikiapiserver2026-06-25 12:22:58 +0200
committerwikiapiserver2026-06-25 12:23:11 +0200
commit6667426e24bba82ade4702cb8f85849bebec6077 (patch)
tree66b3bce3db743d753067b5a5c65479131ae57007 /go.mod
downloadwikiapiserver-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.mod8
1 files changed, 8 insertions, 0 deletions
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..c096aa8
--- /dev/null
+++ b/go.mod
@@ -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
+)