feat: Implement hackathon registration module with controller, DTOs, repository, schema, and service
- Added registration_controller.rs to handle registration-related routes and logic. - Created registration_dto.rs for data transfer objects related to registrations. - Implemented registration_repository.rs for database interactions concerning registrations. - Defined registration_schema.rs to represent the registration data structure. - Developed registration_service.rs to encapsulate business logic for registrations. - Established routes for registering, listing, updating, and checking in participants for hackathons. - Added validation for registration requests and status updates. - Included statistics retrieval for hackathon registrations.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
use axum::Router;
|
||||
|
||||
pub mod hackathon;
|
||||
pub mod notifications;
|
||||
pub mod registrations;
|
||||
|
||||
// Export the router function from hackathon module
|
||||
pub use hackathon::hackathon_router;
|
||||
pub use notifications::notifications_router;
|
||||
pub use registrations::registrations_router;
|
||||
|
||||
// Main route constructor
|
||||
@@ -17,6 +19,7 @@ pub fn hackathon_protected_routes() -> Router {
|
||||
.route("/hackathons/submissions/{id}/status", axum::routing::patch(update_submission_status))
|
||||
.route("/hackathons/{hackathon_id}/admin/results", axum::routing::get(get_admin_hackathon_results))
|
||||
.merge(registrations_router())
|
||||
.merge(notifications_router())
|
||||
}
|
||||
|
||||
// Public routes for hackathons (only listing and retrieving)
|
||||
|
||||
Reference in New Issue
Block a user