From 1197fe687befdf5244b508f489fc6299260f50a4 Mon Sep 17 00:00:00 2001 From: "Florian RICHER (MrDev023)" Date: Mon, 21 Mar 2022 19:41:05 +0100 Subject: [PATCH] Rename front to views --- src/controllers/hello_controller.rs | 2 +- src/main.rs | 2 +- src/{front => views}/components/hello.rs | 0 src/{front => views}/components/mod.rs | 0 src/{front => views}/mod.rs | 0 5 files changed, 2 insertions(+), 2 deletions(-) rename src/{front => views}/components/hello.rs (100%) rename src/{front => views}/components/mod.rs (100%) rename src/{front => views}/mod.rs (100%) 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