routes.static

Static/basic route handlers for the webapp HTTP API.

Functions

get_root(handler, html_template)

Serve the single-page web UI shell.

get_text_asset(handler, *, content, content_type)

Serve one UTF-8 static text asset (for example CSS/JS).

get_binary_asset(handler, *, payload, content_type)

Serve one binary static asset (for example WOFF2 fonts).

get_health(handler)

Return a lightweight liveness response.

get_favicon(handler)

Reply to browser favicon probes without noisy 404 logs.

Module Contents

routes.static.get_root(handler, html_template)

Serve the single-page web UI shell.

routes.static.get_text_asset(handler, *, content, content_type)

Serve one UTF-8 static text asset (for example CSS/JS).

routes.static.get_binary_asset(handler, *, payload, content_type)

Serve one binary static asset (for example WOFF2 fonts).

routes.static.get_health(handler)

Return a lightweight liveness response.

routes.static.get_favicon(handler)

Reply to browser favicon probes without noisy 404 logs.