This commit is contained in:
2025-04-19 19:11:13 +02:00
parent 8f8016e748
commit 86bb165bf2
20 changed files with 3803 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
use actix_web::web;
use crate::controllers::home::HomeController;
/// Configures all application routes
pub fn configure_routes(cfg: &mut web::ServiceConfig) {
cfg.service(
web::scope("")
// Home routes
.route("/", web::get().to(HomeController::index))
.route("/about", web::get().to(HomeController::about))
.route("/contact", web::get().to(HomeController::contact))
.route("/contact", web::post().to(HomeController::submit_contact))
// Add more routes here as needed
);
}