diff --git a/src/routes/index.rs b/src/routes/index.rs index b9f6bb2..aad60f4 100644 --- a/src/routes/index.rs +++ b/src/routes/index.rs @@ -3,14 +3,14 @@ use askama::Template; #[get("/")] pub async fn page() -> impl Responder { - HttpResponse::Ok().body(get_index()) + HttpResponse::Ok().body(get_page()) } #[derive(Template)] #[template(path = "../templates/index.html")] struct IndexTemplate {} -pub fn get_index() -> std::string::String { +pub fn get_page() -> std::string::String { let index = IndexTemplate {}; index.render().unwrap()