fix
This commit is contained in:
parent
74680b91b5
commit
4f2557941e
1309
Cargo.lock
generated
1309
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,3 @@
|
|||||||
workspace = { members = ["apps/account/domain/repo"] }
|
|
||||||
[package]
|
[package]
|
||||||
name = "sold"
|
name = "sold"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
@ -5,12 +5,8 @@ async fn greet(name: web::Path<String>) -> impl Responder {
|
|||||||
format!("Hello {name}!")
|
format!("Hello {name}!")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[actix_web::main] // or #[tokio::main]
|
||||||
pub fn test_start_server() {
|
pub async fn start_server() -> std::io::Result<()> {
|
||||||
println!("test start account server")
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn start_server() -> std::io::Result<()> {
|
|
||||||
HttpServer::new(|| {
|
HttpServer::new(|| {
|
||||||
App::new().service(greet)
|
App::new().service(greet)
|
||||||
})
|
})
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
use crate::apps::account as account;
|
use crate::apps::account as account;
|
||||||
|
|
||||||
|
|
||||||
fn start_apps() {
|
pub fn start_apps() {
|
||||||
account::boot()
|
account::boot()
|
||||||
}
|
}
|
@ -3,7 +3,7 @@ pub mod apps;
|
|||||||
pub mod bin;
|
pub mod bin;
|
||||||
use crate::apps::account;
|
use crate::apps::account;
|
||||||
|
|
||||||
#[actix_web::main] // or #[tokio::main]
|
|
||||||
async fn main() -> std::io::Result<()> {
|
fn main() {
|
||||||
bin::all_in_one::boot();
|
bin::all_in_one::boot::start_apps();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user