Minimal Odin HTTP server scaffold driven by OpenSpec.
Prerequisites:
- Odin compiler installed and available in
PATH.
Default listen address:
127.0.0.1:8080
Override listen address via environment variable:
ODIN_HTTP_ADDR=127.0.0.1:9090
Run command:
odin run ./cmd/server- Start server with
odin run ./cmd/server. - Verify root endpoint:
curl -i http://localhost:8080/- Expect status
200and body{"service":"odin-http-server","status":"ok"}
- Verify health endpoint:
curl -i http://localhost:8080/health- Expect status
200and body{"status":"ok"}
- Verify unknown endpoint:
curl -i http://localhost:8080/unknown- Expect status
404and JSON error response.
- Verify environment override:
ODIN_HTTP_ADDR=127.0.0.1:9090 odin run ./cmd/servercurl -i http://localhost:9090/health