From 7a98b2c3c4ffd05834d831dcf3782324d9f44113 Mon Sep 17 00:00:00 2001
From: Adam <24621027+adoyle0@users.noreply.github.com>
Date: Thu, 18 Jan 2024 17:38:43 -0500
Subject: [PATCH] give slingshot the path (change later (maybe (hopefully)))
---
doordesk/app/src/routes/home.rs | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/doordesk/app/src/routes/home.rs b/doordesk/app/src/routes/home.rs
index faddf6b..d6be109 100644
--- a/doordesk/app/src/routes/home.rs
+++ b/doordesk/app/src/routes/home.rs
@@ -1,22 +1,30 @@
use crate::components::article::*;
use crate::components::slingshot::*;
+use crate::error_template::*;
use leptos::*;
#[component]
pub fn Home() -> impl IntoView {
- let data_resource = create_local_resource(|| (), |_| async move { slingshot().await });
+ let data_resource = create_local_resource(
+ || (),
+ |_| async move { slingshot("./public/static".to_string()).await },
+ );
let articles_view = move || {
data_resource.and_then(|data| {
data.iter()
- .map(|article| view! {