about summary refs log tree commit diff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-05-17 09:38:40 +0300
committerVika <vika@fireburn.ru>2021-05-17 09:38:40 +0300
commit0fbe373fcb716fbc6eb344022ab72de00512fc68 (patch)
treece1529b27973599f84cb68d3e14c01ba956e28d7 /src/lib.rs
parent9d90a72131153d53d751505aab883047cd0645c7 (diff)
Onboarding - initial feature
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 954f1f2..27adc1a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -35,7 +35,8 @@ where
         Ok(Response::builder(200).body(MICROPUB_CLIENT).content_type("text/html").build())
     });
     app.at("/").with(frontend::ErrorHandlerMiddleware {})
-        .get(frontend::mainpage);
+        .get(frontend::mainpage)
+        .post(frontend::onboarding_receiver);
     app.at("/static/*path").with(frontend::ErrorHandlerMiddleware {}).get(frontend::handle_static);
     app.at("/*path").with(frontend::ErrorHandlerMiddleware {}).get(frontend::render_post);
     app.at("/coffee").with(frontend::ErrorHandlerMiddleware {}).get(frontend::coffee);