Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
TomTriple committed Sep 28, 2023
1 parent fff2bf0 commit cbee2be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zio-http/src/main/scala/zio/http/Middleware.scala
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ object Middleware extends HandlerAspects {
toMiddleware(path, StaticServe.fromDirectory(docRoot))

/**
* Creates a middleware for serving static files from resources.
* Creates a middleware for serving static files from resources at the path
* `path`.
*/
def serveResources(path: Path)(implicit trace: Trace): Middleware[Any] =
toMiddleware(path, StaticServe.fromResource)
Expand Down

0 comments on commit cbee2be

Please sign in to comment.