Lifts a function into an AuthedRoutes.
Lifts a function into an AuthedRoutes. The application of run
is suspended in F
to permit more efficient combination of
routes via SemigroupK
.
the type of the auth info in the AuthedRequest accepted by the AuthedRoutes
the effect of the AuthedRoutes
the function to lift
an AuthedRoutes that wraps run
The empty service (all requests fallthrough).
The empty service (all requests fallthrough).
- ignored.
Lifts a partial function into an AuthedRoutes.
Lifts a partial function into an AuthedRoutes. The application of the
partial function is suspended in F
to permit more efficient combination
of authed services via SemigroupK
.
the base effect of the AuthedRoutes
the partial function to lift
An AuthedRoutes that returns some Response in an OptionT[F, ?]
wherever pf
is defined, an OptionT.none
wherever it is not