summaryrefslogtreecommitdiff
path: root/src/channel
diff options
context:
space:
mode:
Diffstat (limited to 'src/channel')
-rw-r--r--src/channel/routes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channel/routes.rs b/src/channel/routes.rs
index 5d67af8..a92615f 100644
--- a/src/channel/routes.rs
+++ b/src/channel/routes.rs
@@ -56,7 +56,7 @@ impl IntoResponse for CreateError {
#[derive(Clone, serde::Deserialize)]
struct SendRequest {
- message: String,
+ body: String,
}
async fn on_send(
@@ -67,7 +67,7 @@ async fn on_send(
Json(request): Json<SendRequest>,
) -> Result<StatusCode, SendErrorResponse> {
app.messages()
- .send(&channel, &login, &sent_at, &request.message)
+ .send(&channel, &login, &sent_at, &request.body)
.await?;
Ok(StatusCode::ACCEPTED)