Merge pull request 'Actualiser back/src/main.rs' (#4) from back_end into main

Reviewed-on: #4
This commit is contained in:
linlkin 2024-12-05 23:03:41 +00:00
commit c3a7d0ee7b

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