From 95ce885dbc1f8c5c431c7607a054d08da7392867 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 7 Mar 2022 11:36:19 +0300 Subject: Port onboarding --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 3ce32af..866fcf3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -131,11 +131,14 @@ async fn main() { microsub: None, }; - // TODO interpret HEAD let homepage = warp::get() .and(warp::path::end()) .and(kittybox::frontend::homepage(database.clone(), endpoints.clone())); + let onboarding = warp::path("onboarding") + .and(warp::path::end()) + .and(kittybox::frontend::onboarding(database.clone(), endpoints.clone(), http_client.clone())); + let micropub = warp::path("micropub") .and(warp::path::end() .and(kittybox::micropub::micropub( @@ -178,6 +181,7 @@ async fn main() { let metrics = warp::path("metrics").and(warp::path::end()).map(kittybox::metrics::gather); let app = homepage + .or(onboarding) .or(metrics .or(health)) .or(static_files) -- cgit 1.4.1