mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-24 20:28:06 +02:00
11 lines
230 B
Rust
11 lines
230 B
Rust
use axum::extract::Path;
|
|||
use axum::response::{Html, Redirect};
|
|||
|
|||
async fn show_profile(Path(name): Path<String>) -> Html<String> {
|
|||
Html(name)
|
|||
}
|
|||
|
|||
async fn bounce(Path(next): Path<String>) -> Redirect {
|
|||
Redirect::to(&next)
|
|||
}
|