1
0
Fork 0
rust-actix/src/main.rs

15 lines
331 B
Rust
Raw Normal View History

2022-03-21 19:35:53 +01:00
pub(self) mod controllers;
pub(self) mod front;
use actix_web::{App, HttpServer, web};
#[actix_web::main]
async fn main() -> std::io::Result<()>{
HttpServer::new(|| {
App::new().service(web::scope("/hello").service(controllers::hello_controller::index))
})
.bind(("127.0.0.1", 8000))?
.run()
.await
}