Actualiser back/src/main.rs #4

Merged
linlkin merged 1 commit from back_end into main 2024-12-05 23:03:42 +00:00

View file

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