Cargo fmt
This commit is contained in:
parent
f71490c5fd
commit
8963d21b9c
@ -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,7 +22,7 @@ async fn main_start() {
|
||||
Err(error) => {
|
||||
println!("Error connecting with the database: {error}");
|
||||
panic!();
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
routes::main_router::start_all_routes(start_time, db_conn)
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -1,5 +1,4 @@
|
||||
|
||||
use std::{sync::Arc};
|
||||
use std::sync::Arc;
|
||||
|
||||
use actix_cors::Cors;
|
||||
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))
|
||||
.service(
|
||||
web::scope("/api")
|
||||
.service(
|
||||
web::scope("/admin")
|
||||
)
|
||||
.service(
|
||||
web::scope("/read")
|
||||
)
|
||||
.service(web::scope("/admin"))
|
||||
.service(web::scope("/read")),
|
||||
)
|
||||
|
||||
/*.service(
|
||||
|
@ -1,5 +1,5 @@
|
||||
pub mod main_router;
|
||||
pub mod click;
|
||||
pub mod main_router;
|
||||
pub mod project;
|
||||
pub mod property;
|
||||
pub mod realtor;
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
Loading…
Reference in New Issue
Block a user