We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 372716d + 2f3e81e commit 4e95657Copy full SHA for 4e95657
routes/src/appRoute.scala
@@ -17,7 +17,10 @@ def appRoute[F[_]: Files](stringPath: String)(using f: Async[F]): HttpRoutes[F]
17
case req @ GET -> Root / fName ~ "js" =>
18
StaticFile
19
.fromPath(fs2.io.file.Path(stringPath) / req.uri.path.renderString, Some(req))
20
- .getOrElseF(f.pure(Response[F](Status.NotFound)))
+ .getOrElseF(
21
+ fileService[F](FileService.Config(stringPath)).run(req)
22
+ .getOrElseF(f.pure(Response[F](Status.NotFound)))
23
+ )
24
25
case req @ GET -> Root / fName ~ "wasm" =>
26
0 commit comments