Files
imphnen-backend-service/imphnen-middleware/src/lib.rs
T
MythEclipse 6915a97d79 feat: Enhance Hackathon Timeline Management and Admin Features
- Updated HackathonTimelineCreateRequestDto to accept optional title and name fields.
- Added custom validators for HackathonPhase and date checks in hackathon_dto.rs.
- Implemented admin-sensitive data management DTOs for handling user scores and personal info.
- Introduced new admin routes for managing users, roles, and permissions in IAM module.
- Added timeline enforcement middleware to restrict access based on hackathon phases.
- Created tests for timeline enforcement and admin permissions to ensure proper access control.
- Implemented payment middleware as a placeholder for future payment processing logic.
- Enhanced audit logging middleware for improved error handling and logging.
2025-10-13 10:57:53 +07:00

19 lines
786 B
Rust

pub mod audit_logging_middleware;
pub mod auth_middleware;
pub mod cors_middleware;
pub mod payment_middleware;
pub mod permissions_middleware;
pub mod rate_limiting_middleware;
pub mod security_headers_middleware;
pub mod timeline_enforcement_middleware;
// Re-export all middleware for easy access
pub use audit_logging_middleware::audit_logging_middleware;
pub use auth_middleware::auth_middleware;
pub use cors_middleware::cors_middleware;
pub use payment_middleware::PaymentLayer;
pub use permissions_middleware::{PermissionsMiddlewareLayer, check_permissions};
pub use rate_limiting_middleware::rate_limiting_middleware;
pub use security_headers_middleware::security_headers_middleware;
pub use timeline_enforcement_middleware::{TimelineEnforcementLayer, TimelineOperationType};