paste: change return signature of fetching paste

Signed-off-by: ATechnoHazard <amolele@gmail.com>
This commit is contained in:
Amogh Lele 2020-08-29 23:37:28 +05:30
parent 51591530d0
commit 4a456aafd6
No known key found for this signature in database
GPG Key ID: F475143EDEDEBA3C

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 {