Actualiser back/src/main.rs

added the service bc i forgot oupsie

Signed-off-by: linlkin <ilyass.ajdira@hotmail.com>
This commit is contained in:
linlkin 2024-12-05 23:02:43 +00:00
parent efe0b6b410
commit c3888c61f9

View file

@ -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))?