Skip to content

Commit

Permalink
Explain how the root URI is handled
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fb-martin authored Oct 13, 2019
1 parent d7b5258 commit e759cb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,5 @@ int echttp_static_route (const char *uri, const char *path);
Associate a parent URI with a local directory path: a child of the specified URI will match an existing file at the specified path (including the URI's child relative path).

For example if one defines a static route from /static to /home/doe/public, the URI /static/fancy/interface.html will route to /home/doe/public/fancy/interface.html.

As soon as a static route has been declared, the extension takes over the root URI "/". If the root URI is requested, the extension seaches for file index.html in every path provided and returns the content of the first one found.

0 comments on commit e759cb3

Please sign in to comment.