15 lines
295 B
Rust
15 lines
295 B
Rust
|
mod actors;
|
||
|
mod logic;
|
||
|
mod model;
|
||
|
mod routes;
|
||
|
|
||
|
use actix_web::{App, HttpServer};
|
||
|
|
||
|
#[actix_web::main] // or #[tokio::main]
|
||
|
async fn main() -> std::io::Result<()> {
|
||
|
HttpServer::new(|| App::new().configure(routes::configure))
|
||
|
.bind(("127.0.0.1", 8080))?
|
||
|
.run()
|
||
|
.await
|
||
|
}
|