Hello,
Due to security policies we are not allowed to use “underscore” with our imports. Intellij’s scala support is not the best so I had no luck to find the specific import using optional parameters in a http path like:
import akka.http.scaladsl.server.Directives._
val someRoute: Route = {
path("path" / "to" / "resource") {
parameters("color".?) { color =>
... do somthing with it
}
}
I can trace back the “?” method but not the optional like stated in the documentation: https://doc.akka.io/docs/akka-http/current/routing-dsl/directives/parameter-directives/parameters.html
Anyway finding the specific import was not successful
It would be great if someone could help me with this!
Tanks
1 post - 1 participant