We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad4cdd commit 42678baCopy full SHA for 42678ba
echo/src/main.rs
@@ -21,6 +21,7 @@ pub mod utils;
21
#[rocket::launch]
22
fn rocket() -> _ {
23
let routes = routes![
24
+ routes::get_root,
25
cors::snatcher,
26
docs::get_docs,
27
docs::get_spec,
echo/src/routes/mod.rs
@@ -1,4 +1,11 @@
1
+use rocket::{get, response::Redirect, uri};
2
+
3
pub mod docs;
4
pub mod health;
5
pub mod pastes;
6
pub mod security;
7
8
+#[get("/")]
9
+pub fn get_root() -> Redirect {
10
+ Redirect::temporary(uri!("/docs"))
11
+}
0 commit comments