15 lines
331 B
Rust
15 lines
331 B
Rust
|
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
|
||
|
}
|