Fixes the ugly Register User post handler.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user