diff --git a/src/controllers/hello_controller.rs b/src/controllers/hello_controller.rs index 4d1c235..0a075cc 100644 --- a/src/controllers/hello_controller.rs +++ b/src/controllers/hello_controller.rs @@ -2,7 +2,7 @@ use actix_web::{get, Responder, web, HttpResponse}; use yew::ServerRenderer; -use crate::front::components::hello::{Hello, HelloProps}; +use crate::views::components::hello::{Hello, HelloProps}; #[get("/{name}")] async fn index(name: web::Path) -> impl Responder { diff --git a/src/main.rs b/src/main.rs index 1421a8e..d89b9e6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ pub(self) mod controllers; -pub(self) mod front; +pub(self) mod views; use actix_web::{App, HttpServer, web}; diff --git a/src/front/components/hello.rs b/src/views/components/hello.rs similarity index 100% rename from src/front/components/hello.rs rename to src/views/components/hello.rs diff --git a/src/front/components/mod.rs b/src/views/components/mod.rs similarity index 100% rename from src/front/components/mod.rs rename to src/views/components/mod.rs diff --git a/src/front/mod.rs b/src/views/mod.rs similarity index 100% rename from src/front/mod.rs rename to src/views/mod.rs