We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c33d3fb commit 5483be9Copy full SHA for 5483be9
echo/src/routes/pastes.rs
@@ -22,7 +22,7 @@ pub async fn get_paste<'r>(
22
Ok(Json(Paste::fetch(&mut conn, id, password).await?))
23
}
24
25
-#[post("/pastes", format = "text/plain", data = "<data>")]
+#[post("/pastes", data = "<data>", rank = 2)]
26
pub async fn create_paste_simple<'r>(
27
mut conn: Connection<PgDatabase>,
28
data: String,
0 commit comments