Fixes the ugly Register User post handler.

This commit is contained in:
Dennis Brentjes
2023-03-30 09:32:24 +02:00
parent 3509a70a6a
commit 70ae15f655
9 changed files with 70 additions and 68 deletions

View File

@@ -1,5 +1,6 @@
pub mod request;
pub mod schema;
pub mod util;
use actix_web::HttpServer;
use actix_web::App;
@@ -13,7 +14,6 @@ pub(crate) type DbPool = Pool<ConnectionManager<PgConnection>>;
#[actix_web::main]
async fn main() -> std::io::Result<()> {
let url = "postgres://root:root@localhost/gamenight";
let manager = ConnectionManager::<PgConnection>::new(url);
// Refer to the `r2d2` documentation for more methods to use