Cargo fmt
This commit is contained in:
parent
f71490c5fd
commit
8963d21b9c
10
src/main.rs
10
src/main.rs
@ -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();
|
||||
}
|
@ -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,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();
|
||||
|
@ -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