use axum::response::{IntoResponse, Redirect}; use crate::AuthContext; pub async fn handle_slash_redir() -> impl IntoResponse { Redirect::temporary("/") } pub async fn handle_slash(auth: AuthContext) -> impl IntoResponse { if let Some(user) = auth.current_user { tracing::debug!("Logged in as: {user}"); } else { tracing::debug!("Not logged in.") } }