From 470ee220c8f3cf7d22d5a208ef4a43ee1e726c46 Mon Sep 17 00:00:00 2001 From: phoenix Date: Tue, 1 Apr 2025 21:12:32 -0400 Subject: [PATCH] test db is working --- src/callers/common.rs | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/callers/common.rs b/src/callers/common.rs index 0e29287..afb5ffb 100644 --- a/src/callers/common.rs +++ b/src/callers/common.rs @@ -1,4 +1,4 @@ -use axum::{Json, extract::Extension, http::StatusCode}; +use axum::{Extension, Json, http::StatusCode}; use serde::{Deserialize, Serialize}; diff --git a/src/main.rs b/src/main.rs index db3d182..bfd25b9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,13 +18,13 @@ async fn main() { // build our application with a route let app = Router::new() - .layer(axum::Extension(pool)) .route(callers::endpoints::DBTEST, get(callers::common::db_ping)) .route(callers::endpoints::ROOT, get(callers::common::root)) .route( callers::endpoints::REGISTER, post(callers::register::register_user), - ); + ) + .layer(axum::Extension(pool)); // run our app with hyper, listening globally on port 3000 let url = config::get_full();