We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a7bdad commit c68c96aCopy full SHA for c68c96a
src/router.rs
@@ -2,14 +2,15 @@ use std::sync::Arc;
2
3
#[cfg(feature = "stt")]
4
use axum::routing::post;
5
-use axum::{Router, routing::get};
+use axum::{Router, response::Redirect, routing::get};
6
use tokio::net::TcpListener;
7
8
use crate::state::State;
9
10
pub fn router(state: State) -> axum::Router {
11
#[allow(unused_mut)]
12
let mut router = Router::new()
13
+ .route("/", get(|| async { Redirect::temporary("/about") }))
14
.route("/about", get(crate::ui::handlers::about))
15
.route("/health", get(crate::routes::health::check));
16
0 commit comments