diff --git a/src/main.rs b/src/main.rs index 0df93de..81208d9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,5 @@ use actix_web::{get, post, web, App, HttpResponse, HttpServer, Responder}; - -#[get("/")] -async fn hello() -> impl Responder { - HttpResponse::Ok().body("Hello world!") -} +use dotenv::dotenv; #[post("/echo")] async fn echo(req_body: String) -> impl Responder { @@ -16,6 +12,7 @@ async fn manual_hello() -> impl Responder { #[actix_web::main] async fn main() -> std::io::Result<()> { + dotenv().ok(); HttpServer::new(|| { App::new() .service(hello)