commit
This commit is contained in:
commit
891025f3f4
@ -5,12 +5,8 @@ async fn greet(name: web::Path<String>) -> impl Responder {
|
||||
format!("Hello {name}!")
|
||||
}
|
||||
|
||||
|
||||
pub fn test_start_server() {
|
||||
println!("test start account server")
|
||||
}
|
||||
|
||||
pub fn start_server() -> std::io::Result<()> {
|
||||
#[actix_web::main] // or #[tokio::main]
|
||||
pub async fn start_server() -> std::io::Result<()> {
|
||||
HttpServer::new(|| {
|
||||
App::new().service(greet)
|
||||
})
|
||||
|
@ -1,6 +1,6 @@
|
||||
use crate::apps::account as account;
|
||||
|
||||
|
||||
fn start_apps() {
|
||||
pub fn start_apps() {
|
||||
account::boot()
|
||||
}
|
@ -3,7 +3,7 @@ pub mod apps;
|
||||
pub mod bin;
|
||||
use crate::apps::account;
|
||||
|
||||
#[actix_web::main] // or #[tokio::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
bin::all_in_one::boot();
|
||||
|
||||
fn main() {
|
||||
bin::all_in_one::boot::start_apps();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user