pub mod authentication; use crate::db_connection::{DbPool, MyPooledConnection}; use actix_web::{web, HttpResponse}; pub fn pool_handler(pool: web::Data) -> Result { pool.get() .map_err(|e| HttpResponse::InternalServerError().json(e.to_string())) }