From 3d0aad3de12f1a892d2bdcef5b01697512ef0e46 Mon Sep 17 00:00:00 2001 From: Shautvast Date: Fri, 21 Nov 2025 16:20:42 +0100 Subject: [PATCH] undo --- src/reference_main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reference_main.rs b/src/reference_main.rs index fc01677..e210bcd 100644 --- a/src/reference_main.rs +++ b/src/reference_main.rs @@ -32,7 +32,7 @@ async fn main() -> Result<(), Box> { }; let app = Router::new() - .route("/api/customers.tp/{id}", get(get_customer)) + .route("/api/customers/{id}", get(get_customer)) .with_state(state); // run our app with hyper, listening globally on port 3000 @@ -53,7 +53,7 @@ async fn get_customer( let rows = state .db .query( - "SELECT id, first_name, last_name FROM customers.tp WHERE id = $1", + "SELECT id, first_name, last_name FROM customers WHERE id = $1", &[&id], ) .await