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! {
}) - .collect_view() + .map(|article| view! {
}) + .collect_view() }) }; view! { "Loading..."

} - }>{articles_view}
+ }> + } + }>{articles_view} + } }