Remove dead listing_since_get() and page_get()
All checks were successful
Cargo Build & Test / Rust project - latest (1.88) (push) Successful in 3m31s
Cargo Build & Test / Rust project - latest (1.85.1) (push) Successful in 4m2s
Cargo Build & Test / Rust project - latest (1.86) (push) Successful in 4m11s
Cargo Build & Test / Rust project - latest (1.87) (push) Successful in 9m34s
All checks were successful
Cargo Build & Test / Rust project - latest (1.88) (push) Successful in 3m31s
Cargo Build & Test / Rust project - latest (1.85.1) (push) Successful in 4m2s
Cargo Build & Test / Rust project - latest (1.86) (push) Successful in 4m11s
Cargo Build & Test / Rust project - latest (1.87) (push) Successful in 9m34s
This commit is contained in:
14
src/main.rs
14
src/main.rs
@@ -64,18 +64,6 @@ async fn listing_get(
|
||||
Ok(web::Json(Listing::lookup(&db.lock().unwrap(), *id)))
|
||||
}
|
||||
|
||||
#[get("/listing/since/{timestamp}/{limit}")]
|
||||
async fn listing_since_get(
|
||||
db: Data<Mutex<rusqlite::Connection>>,
|
||||
req: web::Path<(i64, i64)>,
|
||||
) -> Result<impl Responder> {
|
||||
Ok(web::Json(Listing::lookup_since(
|
||||
&db.lock().unwrap(),
|
||||
DateTime::from_timestamp(req.0, 0).unwrap(),
|
||||
req.1,
|
||||
)))
|
||||
}
|
||||
|
||||
#[get("/listing/{id}/parsed")]
|
||||
async fn listing_parse_get(
|
||||
db: Data<Mutex<rusqlite::Connection>>,
|
||||
@@ -306,12 +294,10 @@ async fn main() -> std::io::Result<()> {
|
||||
|
||||
HttpServer::new(move || {
|
||||
App::new()
|
||||
// .service(page_get)
|
||||
// Listing handlers
|
||||
.service(listing_get)
|
||||
.service(listings_filtered_get)
|
||||
.service(listing_history_get)
|
||||
.service(listing_since_get)
|
||||
// Category handlers
|
||||
.service(parse_listings)
|
||||
.service(category_parse)
|
||||
|
Reference in New Issue
Block a user