with akka http, I use getFromDirectory()
to serve files from a directory.
How can I say that if a requested file is not found in a dir, look at it to another directory?
Something like this:
lazy val userRoutes: Route =
pathPrefix("files") {
getFromDirectory("./static")
.orElse(getFromDirectory(".generated1")) // this orElse function does not exist. how to achive something like this?
.orElse(getFromDirectory(".generated2")) // this orElse function does }