Compare commits

..

2 commits

Author SHA1 Message Date
c3a7d0ee7b Merge pull request 'Actualiser back/src/main.rs' (#4) from back_end into main
Reviewed-on: #4
2024-12-05 23:03:41 +00:00
c3888c61f9 Actualiser back/src/main.rs
added the service bc i forgot oupsie

Signed-off-by: linlkin <ilyass.ajdira@hotmail.com>
2024-12-05 23:02:43 +00:00

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