paste: change return signature of fetching paste

Signed-off-by: ATechnoHazard <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2020-08-29 23:37:28 +05:30
1 parent 51591530d0
commit 4a456aafd6
1 file changed
+1 -1
+1 -1
View File
@@ -61,7 +61,7 @@ fn fetch(id: String, conn: DbConn) -> Custom<Json<Value>> {
} }
}; };
Custom(Status::Found, Json(json!(paste))) Custom(Status::Ok, Json(json!(paste)))
} }
pub fn fuel(rocket: Rocket) -> Rocket { pub fn fuel(rocket: Rocket) -> Rocket {