From 2b89b35c0da959295fe9c90f62b0f94c617b8e31 Mon Sep 17 00:00:00 2001 From: Vika Date: Fri, 15 Apr 2022 07:44:11 +0300 Subject: frontend: Made endpoints optional in templates Sometimes it's cumbersome to include them, and I plan to make them embedded in the app anyway. This is my reminder to do it ASAP. --- src/frontend/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/frontend/mod.rs') diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs index 1069b92..daeebd9 100644 --- a/src/frontend/mod.rs +++ b/src/frontend/mod.rs @@ -278,7 +278,7 @@ pub fn homepage(db: D, endpoints: IndiewebEndpoints) -> impl Filter< Box::new(warp::reply::html(Template { title: &blog_name, blog_name: &blog_name, - endpoints, + endpoints: Some(endpoints), feeds, user: None, // TODO content: MainPage { feed: &feed, card: &card }.to_string() @@ -303,7 +303,7 @@ pub fn onboarding(db: D, endpoints: IndiewebEndpoints) -> impl Filter< warp::reply::with_status(warp::reply::html(Template { title: &title, blog_name: &blog_name, - endpoints, + endpoints: Some(endpoints), feeds, user: None, // TODO content, -- cgit 1.4.1