Files
foxhunt/services/api/src/config/mod.rs
jgrusewski e50ea55064 feat: create services/api/ — unified gRPC gateway with tonic-web
Copied from api_gateway, removed REST handlers (port 8080),
added tonic-web + CORS for grpc-web browser access.
Binary renamed: api-gateway → api

Changes:
- Package name: api-gateway → api
- Deleted src/handlers/ (REST ML endpoints on port 8080)
- Added tonic-web 0.13 + tower-http CORS layer
- Server::builder().accept_http1(true) for grpc-web
- CORS_ORIGINS env var (default http://localhost:5173)
- Metrics server on port 9091 (axum) preserved
- All 95 lib tests pass, 0 clippy warnings
- Added services/api to workspace members

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 23:32:46 +01:00

14 lines
387 B
Rust

//! Configuration management module with PostgreSQL hot-reload and validation
pub mod authz;
pub mod endpoints;
pub mod manager;
pub mod validator;
pub use endpoints::GatewayConfigService;
pub use manager::{ConfigItem, ConfigurationManager};
pub use validator::{ConfigValidator, ValidationRules};
// Re-export RBAC types
pub use authz::{AuthzMetrics, AuthzService, PermissionResult};