generated from lucien/actix-react-template
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:
parent
efe0b6b410
commit
c3888c61f9
1 changed files with 1 additions and 0 deletions
|
@ -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))?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue