Skip to content

Commit 3738f3b

Browse files
committed
documentation: add back static files fix #3942
1 parent ad0afe0 commit 3738f3b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

docs/asciidoc/static-files.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Static files are served using the javadoc:Router[assets, java.lang.String, java.
2121
<1> Maps all incoming requests starting with `/static/` to the `/source` location.
2222

2323
For example:
24+
2425
* `GET /static/index.html` => `/source/index.html`
2526
* `GET /static/js/file.js` => `/source/js/file.js`
2627
* `GET /static/css/styles.css` => `/source/css/styles.css`
@@ -101,6 +102,7 @@ The `assets` route can also serve full static websites (like generated documenta
101102
<2> Use the `/?*` mapping to enable automatic root resolution.
102103

103104
The `/?*` syntax automatically resolves root paths to their underlying `index.html`:
105+
104106
* `GET /docs` => `/docs/index.html`
105107
* `GET /docs/index.html` => `/docs/index.html`
106108
* `GET /docs/about.html` => `/docs/about.html`

docs/asciidoc/web.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
[.lead]
33
Everything you need to handle HTTP traffic and build robust APIs or web applications. Explore Jooby's expressive routing paradigms, request and response handling, content negotiation, and advanced web features like WebSockets and file uploads.
44

5+
include::static-files.adoc[]
6+
57
include::mvc-api.adoc[]
68

79
include::templates.adoc[]

0 commit comments

Comments
 (0)