I hit the code actions once

This commit is contained in:
LinlyBoi
2023-12-18 00:20:55 +02:00
parent 62f614acb8
commit 8152622ac8

View File

@@ -1,4 +1,5 @@
use actix_web::{post, web, App, HttpResponse, HttpServer, Responder}; use actix_web::{post, web, App, HttpResponse, HttpServer, Responder};
use arrivals::init_arrivals_scope;
use dotenv::dotenv; use dotenv::dotenv;
use witl_api::*; use witl_api::*;
#[post("/echo")] #[post("/echo")]
@@ -21,8 +22,8 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(|| { HttpServer::new(|| {
App::new() App::new()
.service(echo) .service(echo)
.service(arrivals::init_arrivals_scope()) .service(init_arrivals_scope())
.app_data(web::Data::new(init_dbpool())) .app_data(web::Data::new(pool.clone()))
}) })
.bind(init_address())? .bind(init_address())?
.run() .run()