2019-06-19 20:26:25 -04:00
|
|
|
pub mod keep_alive;
|
2019-06-19 00:20:50 -04:00
|
|
|
// pub mod keep_alive_tp;
|
|
|
|
pub mod signals;
|
|
|
|
pub mod ssl;
|
|
|
|
pub mod workers;
|
2018-05-23 20:39:15 -07:00
|
|
|
|
|
|
|
// <main>
|
2019-06-13 17:10:51 -04:00
|
|
|
use actix_web::{web, App, HttpResponse, HttpServer};
|
2018-05-23 20:39:15 -07:00
|
|
|
|
2020-09-12 16:21:54 +01:00
|
|
|
#[actix_web::main]
|
2019-12-29 03:32:56 +09:00
|
|
|
async fn main() -> std::io::Result<()> {
|
2022-02-26 03:56:24 +00:00
|
|
|
HttpServer::new(|| App::new().route("/", web::get().to(HttpResponse::Ok)))
|
|
|
|
.bind(("127.0.0.1", 8080))?
|
|
|
|
.run()
|
|
|
|
.await
|
2018-05-23 20:39:15 -07:00
|
|
|
}
|
|
|
|
// </main>
|