diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-09-14 00:16:51 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-09-14 00:18:08 -0400 |
| commit | 5249aad35741f6f029c442a04d679937fb91d2bb (patch) | |
| tree | c75085a93538367ae3f5da8f64f90b33a3c8feef /src/channel/routes.rs | |
| parent | 407ca8df6284ce1a4c649b018c7326fd195bbd26 (diff) | |
Placeholder UX, probably
Diffstat (limited to 'src/channel/routes.rs')
| -rw-r--r-- | src/channel/routes.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/channel/routes.rs b/src/channel/routes.rs index 4f83a8b..eae68a2 100644 --- a/src/channel/routes.rs +++ b/src/channel/routes.rs @@ -1,6 +1,5 @@ use axum::{ extract::{Form, Path, State}, - http::StatusCode, response::{ sse::{self, Sse}, IntoResponse, Redirect, @@ -59,7 +58,7 @@ async fn on_send( .send(&login, &channel, &form.message, &sent_at) .await?; - Ok(StatusCode::ACCEPTED) + Ok(Redirect::to(&format!("/{}", channel))) } async fn on_events( |
