mud_server.api.routes.health

Health and root endpoints.

Provides the root / endpoint (API identity and version) and the /health endpoint (liveness check with active session count).

The version string is read from mud_server.__version__ which is resolved at import time via importlib.metadata — the single source of truth is pyproject.toml, bumped automatically by release-please.

Attributes

router

Functions

root()

Root endpoint showing API identity and current version.

health_check()

Health check endpoint.

Module Contents

mud_server.api.routes.health.router
async mud_server.api.routes.health.root()[source]

Root endpoint showing API identity and current version.

Returns a JSON object with the API name and the version read from the installed package metadata (pyproject.toml).

async mud_server.api.routes.health.health_check()[source]

Health check endpoint.