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

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_cors::Cors;
use actix_multipart::form::MultipartFormConfig; use actix_multipart::form::MultipartFormConfig;
@ -31,12 +30,8 @@ pub async fn start_all_routes(start_time: i64, db_conn: Arc<PgPool>) -> Result<(
.app_data(MultipartFormConfig::default().memory_limit(52_428_800)) .app_data(MultipartFormConfig::default().memory_limit(52_428_800))
.service( .service(
web::scope("/api") web::scope("/api")
.service( .service(web::scope("/admin"))
web::scope("/admin") .service(web::scope("/read")),
)
.service(
web::scope("/read")
)
) )
/*.service( /*.service(

View File

@ -1,5 +1,5 @@
pub mod main_router;
pub mod click; pub mod click;
pub mod main_router;
pub mod project; pub mod project;
pub mod property; pub mod property;
pub mod realtor; pub mod realtor;

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

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@

View File

@ -0,0 +1 @@