Skip to content

Commit

Permalink
index html page
Browse files Browse the repository at this point in the history
  • Loading branch information
ImplFerris committed Jan 11, 2025
1 parent cae6a77 commit 4a95007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wifi/web-server/serve-website.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl AppBuilder for Application {

We have created a simple struct that implements the AppBuilder trait. We need to specify the PathRouter type, and we define it as any type that implements the routing::PathRouter trait.

Then, we need to implement the build_app function, which returns a Router instance. We set up a single route for "/," which serves a static HTML page. The content of the HTML page is embedded into the application at compile time using the include_str!("index.html") macro. Place the "index.html" file in the "src/bin/" folder.
Then, we need to implement the build_app function, which returns a Router instance. We set up a single route for "/," which serves a static HTML page. The content of the HTML page is embedded into the application at compile time using the include_str!("index.html") macro. Place the "index.html" file in the "src/" folder.


## Pool size
Expand Down

0 comments on commit 4a95007

Please sign in to comment.