diff options
author | Vika <vika@fireburn.ru> | 2021-05-17 09:38:40 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-05-17 09:38:40 +0300 |
commit | 0fbe373fcb716fbc6eb344022ab72de00512fc68 (patch) | |
tree | ce1529b27973599f84cb68d3e14c01ba956e28d7 /src/lib.rs | |
parent | 9d90a72131153d53d751505aab883047cd0645c7 (diff) | |
download | kittybox-0fbe373fcb716fbc6eb344022ab72de00512fc68.tar.zst |
Onboarding - initial feature
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 3 |
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); |