Consider async actions that are both defined in a similar class/companion object way:
class AuthenticatedAction[T](authorize: AuthenticatedRequest[_] => Future[Boolean]) extends ActionBuilder[AuthenticatedRequest] {...} //Modifies the request
object AuthenticatedAction {...}
class Action2() extends ActionBuilder[Request] {...}
object Action2 {...}
I want to compose these two actions so that Action2 happens first.
override protected def composeAction[A](action: Action[A]): Action[A] = Action2().async(action.parser) { request =>
...
}
I have been unable to figure out what to put into the body of the closure to execute AuthenticatedAction.invokeblock
.
Any insight is appreciated.