Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Jul 17, 2024
1 parent 4e8c2a0 commit 807fe9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions routes/src/buildRoutes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ def frontendRoutes[F[_]](

end frontendRoutes

/** Assumes that assets are served from the server route from resources
*
* @param spaPrefix
* \- configure the route you want the SPA to be served under
* @return
*/
def defaultFrontendRoutes[F[_]](spaPrefix: String = "ui") =
val frontendJs = org.http4s.server.staticcontent.resourceServiceBuilder[IO]("").toRoutes
val serveIndexHtmlBelowSpaPrefix = HttpRoutes.of[IO] {
Expand Down
2 changes: 0 additions & 2 deletions sjsls/src/build.runner.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import java.util.Locale

import fs2.*
import fs2.concurrent.Topic
import fs2.io.Watcher
import fs2.io.Watcher.Event
import fs2.io.process.ProcessBuilder
import fs2.io.process.Processes

Expand Down

0 comments on commit 807fe9b

Please sign in to comment.