Skip to content

Commit 7416df7

Browse files
committed
include assets as a demo
1 parent aa63224 commit 7416df7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ See the [Tutorial](TUTORIAL.md) to grasp the basics quickly.
1818
```kotlin
1919
fun main() {
2020
Server().apply {
21+
assets("/", AssetsHandler(Path.of("public"), useIndexForUnknownPaths = true))
2122
context("/api") {
2223
get("/hello") { "Hello, world!" }
2324
}

0 commit comments

Comments
 (0)