I hit the code actions once
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user