From 6613919da17f893df93c98a65a3f378bf0c3c20c Mon Sep 17 00:00:00 2001 From: Felix Palludan Hargreaves Date: Sat, 9 Mar 2019 11:55:21 +0100 Subject: [PATCH] Update static.md Avoid confusion since the path to assets is not documented for webjars. --- docs/src/main/tut/static.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/src/main/tut/static.md b/docs/src/main/tut/static.md index 7c0f4168a11..ac135fa229b 100644 --- a/docs/src/main/tut/static.md +++ b/docs/src/main/tut/static.md @@ -99,5 +99,7 @@ val webjars: HttpRoutes[IO] = webjarService( blockingEc.shutdown() ``` +Assuming that the service is mounted as root on port `8080`, and you included the webjar `swagger-ui-3.20.9.jar` on your classpath, you would reach the assets with the path: `http://localhost:8080/swagger-ui/3.20.9/index.html` + [StaticFile]: ../api/org/http4s/StaticFile$