2022-03-21 19:35:53 +01:00
|
|
|
pub(self) mod controllers;
|
2022-03-21 19:41:05 +01:00
|
|
|
pub(self) mod views;
|
2022-03-21 19:35:53 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|