diff options
author | Vika <vika@fireburn.ru> | 2022-03-07 11:36:19 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-03-07 11:36:19 +0300 |
commit | 95ce885dbc1f8c5c431c7607a054d08da7392867 (patch) | |
tree | 2a0687ffb2af5b81a85ee89d6fb7dca8951cc731 /src/main.rs | |
parent | f4f75e6e21e014aed06a3dde1474873cbe4fa2c6 (diff) | |
download | kittybox-95ce885dbc1f8c5c431c7607a054d08da7392867.tar.zst |
Port onboarding
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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) |