Package de. peekandpoke. kraft. addons. routing
Types
Link copied to clipboard
data class ActiveRoute( val uri: String, val matchedRoute: Route.Match, val mountedRoute: MountedRoute)
Content copied to clipboard
Represent the route that is currently selected as active route by a Router
Link copied to clipboard
data class MountedRoute( val route: Route, val middlewares: List<RouterMiddleware>, val view: FlowContent.(Route.Match) -> Unit)
Content copied to clipboard
Represents a Route that is mounted by a Router
Link copied to clipboard
The Router
Link copied to clipboard
Helper class for building a Router
Link copied to clipboard
Link copied to clipboard
A RouterMiddleware is just a function with RouterMiddlewareContext as the receiver
Link copied to clipboard
class RouterMiddlewareContext( val router: Router, val uri: String, val match: Route.Match)
Content copied to clipboard
The context for all middle wares
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The router component displays the view that is associated with the ActiveRoute of the given Router
Link copied to clipboard
Helper for defining a router middleware