Skip to main content

aion_server/api/http/
mod.rs

1//! axum HTTP/JSON workflow facade.
2//!
3//! Module layout:
4//! - [`router`] — public router construction (the only public surface).
5//! - `workflows` — workflow management handlers.
6//! - `schedules` — schedule management handlers.
7//! - `events` — websocket event-subscription handlers.
8//! - `deploy` — operator deploy handlers (mounted only when `[deploy].enabled`).
9//! - `authoring` — server-side Gleam authoring (mounted only when `[authoring].gleam_path` is set).
10//! - `dev_ui` — local dev-server surface (mounted only when `[dev].enabled`).
11//! - `auth` — caller-identity extraction from request headers.
12//! - `visibility` — visibility query-string parsing and namespace scoping.
13//! - `payload` — HTTP body/payload encode-decode shapes and conversions.
14//! - `clean_dtos` — clean JSON request/response DTOs for the workflow POST endpoints.
15//! - `error` — wire-error-to-HTTP response mapping.
16
17mod auth;
18mod authoring;
19mod clean_dtos;
20mod deploy;
21mod dev_ui;
22mod error;
23mod events;
24mod payload;
25mod router;
26mod schedules;
27mod visibility;
28mod workflows;
29
30#[cfg(test)]
31mod test_support;
32
33pub use router::{http_router, workflow_router};