Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 804 Bytes

File metadata and controls

24 lines (18 loc) · 804 Bytes

Axum Server for Terraphim AI

This is the Axum server for Terraphim AI. It is a simple server that serves /config and /search API endpoints.

Health / Readiness Probe

GET /health returns HTTP 200 with a fixed JSON body:

{"status":"ok"}

The endpoint is available as soon as the Axum router is serving requests. Integration tests use it as a deterministic readiness signal (polling instead of a fixed sleep) — see tests/common/mod.rs::wait_for_health.

Note: axum have it's own default/settings.toml file to configure the server depending on the device capabilities. it will copy default/settings.toml to ~/.config/terraphim/settings.toml if it doesn't exist on MacOS and Linux.

To build locally, run:

earthly +save-fe-local
cargo build