Skip to content

Commit 4e95657

Browse files
committed
Merge branch 'update_site'
2 parents 372716d + 2f3e81e commit 4e95657

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

routes/src/appRoute.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ def appRoute[F[_]: Files](stringPath: String)(using f: Async[F]): HttpRoutes[F]
1717
case req @ GET -> Root / fName ~ "js" =>
1818
StaticFile
1919
.fromPath(fs2.io.file.Path(stringPath) / req.uri.path.renderString, Some(req))
20-
.getOrElseF(f.pure(Response[F](Status.NotFound)))
20+
.getOrElseF(
21+
fileService[F](FileService.Config(stringPath)).run(req)
22+
.getOrElseF(f.pure(Response[F](Status.NotFound)))
23+
)
2124

2225
case req @ GET -> Root / fName ~ "wasm" =>
2326
StaticFile

0 commit comments

Comments
 (0)