generated from lucien/actix-react-template
Compare commits
2 commits
9fca283ab1
...
c3a7d0ee7b
Author | SHA1 | Date | |
---|---|---|---|
c3a7d0ee7b | |||
c3888c61f9 |
1 changed files with 1 additions and 0 deletions
|
@ -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))?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue