From c3888c61f987e812336f3819fe6bff6a16cb6197 Mon Sep 17 00:00:00 2001 From: linlkin Date: Thu, 5 Dec 2024 23:02:43 +0000 Subject: [PATCH] Actualiser back/src/main.rs added the service bc i forgot oupsie Signed-off-by: linlkin --- back/src/main.rs | 1 + 1 file changed, 1 insertion(+) 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))?