Cargo fmt

This commit is contained in:
Franklin 2023-05-03 20:08:05 -04:00
parent f71490c5fd
commit 8963d21b9c
17 changed files with 34 additions and 25 deletions

View File

@ -9,7 +9,9 @@ mod services;
mod utils;
#[tokio::main]
async fn main() { main_start().await }
async fn main() {
main_start().await
}
/// Use this, to get autocomplete. As the tokio::main macro messes with the LSP
async fn main_start() {
@ -20,10 +22,10 @@ async fn main_start() {
Err(error) => {
println!("Error connecting with the database: {error}");
panic!();
},
}
});
routes::main_router::start_all_routes(start_time, db_conn)
.await
.unwrap();
}
.await
.unwrap();
}

View File

@ -0,0 +1 @@

View File

@ -1,5 +1,4 @@
use std::{sync::Arc};
use std::sync::Arc;
use actix_cors::Cors;
use actix_multipart::form::MultipartFormConfig;
@ -31,21 +30,17 @@ pub async fn start_all_routes(start_time: i64, db_conn: Arc<PgPool>) -> Result<(
.app_data(MultipartFormConfig::default().memory_limit(52_428_800))
.service(
web::scope("/api")
.service(
web::scope("/admin")
)
.service(
web::scope("/read")
)
.service(web::scope("/admin"))
.service(web::scope("/read")),
)
/*.service(
spa()
.index_file("./dist/index.html")
.static_resources_mount("/")
.static_resources_location("./dist")
.finish()
)*/
/*.service(
spa()
.index_file("./dist/index.html")
.static_resources_mount("/")
.static_resources_location("./dist")
.finish()
)*/
})
.bind((HOST_ADDR, HOST_PORT))?
.run();

View File

@ -1,7 +1,7 @@
pub mod main_router;
pub mod click;
pub mod main_router;
pub mod project;
pub mod property;
pub mod realtor;
pub mod trackable;
pub mod view;
pub mod view;

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -3,4 +3,4 @@ pub mod project;
pub mod property;
pub mod realtor;
pub mod trackable;
pub mod view;
pub mod view;

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -1,4 +1,4 @@
#[allow(unused)]
pub mod macros;
#[allow(unused)]
pub mod s3;
pub mod s3;