From 0fbe373fcb716fbc6eb344022ab72de00512fc68 Mon Sep 17 00:00:00 2001 From: Vika Date: Mon, 17 May 2021 09:38:40 +0300 Subject: Onboarding - initial feature --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib.rs') 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); -- cgit 1.4.1