ContextRouter
object ContextRouter
Value members
Concrete methods
Defines an ContextRoutes based on list of mappings.
Defines an ContextRoutes based on list of mappings.
- See also
define
def define[F[_] : Sync, A](mappings: (String, ContextRoutes[A, F])*)(default: ContextRoutes[A, F]): ContextRoutes[A, F]
Defines an ContextRoutes based on list of mappings and a default Service to be used when none in the list match incoming requests.
Defines an ContextRoutes based on list of mappings and a default Service to be used when none in the list match incoming requests.
The mappings are processed in descending order (longest first) of prefix length.