1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! HTTP request handlers for all API endpoints.
//!
//! This module contains Axum route handlers organized by resource type.
//!
//! # Handler Modules
//!
//! - [`api_keys`]: API key creation, listing, and deletion for users
//! - [`auth`]: Authentication, login, registration, and password management
//! - [`batches`]: Batch request creation, monitoring, and cancellation
//! - [`config`]: Application configuration retrieval
//! - [`deployments`]: Model deployment CRUD operations and group assignments
//! - [`files`]: File upload, download, and management for batch processing
//! - [`groups`]: Group management, user memberships, and model access
//! - [`inference_endpoints`]: Inference endpoint CRUD and synchronization
//! - [`payments`]: Payment processing and checkout session creation
//! - [`probes`]: Health probe configuration, execution, and result retrieval
//! - [`requests`]: Request logging, analytics, and aggregation
//! - [`static_assets`]: Frontend asset serving and SPA routing
//! - [`transactions`]: Credit transaction creation and history
//! - [`users`]: User CRUD operations and profile management
//!
//! # Authentication
//!
//! Most handlers require authentication via session cookies, API keys or trusted headers. The
//! [`crate::auth`] module provides authentication utilities that handlers can use to access the
//! current user.
//!
//! # Error Handling
//!
//! Handlers return [`crate::errors::Error`] which automatically converts to
//! appropriate HTTP status codes and JSON error responses. See [`crate::errors`]
//! for details on error types and HTTP status mappings.