diff --git a/back/src/main.rs b/back/src/main.rs index f0a5196..f17e20c 100644 --- a/back/src/main.rs +++ b/back/src/main.rs @@ -9,6 +9,7 @@ async fn main() -> Result<(), std::io::Error> { HttpServer::new(|| { App::new() .service(hello) + .service(get_articles) .service(Files::new("/", "./public").index_file("index.html")) }) .bind(("0.0.0.0", 8080))?