RoutingBuilder

A routing builder interface for entry route.

Inheritors

Functions

Link copied to clipboard
abstract fun action(action: suspend () -> Unit)

Adds an action for unmatched routes.

Link copied to clipboard
abstract fun defaultContent(defaultContent: @Composable IComponent.() -> Unit)

Adds a default content view for the entry route.

Link copied to clipboard
abstract fun defaultMeta(defaultMeta: Meta.() -> Unit)

Adds default metadata for the entry route.

Link copied to clipboard
abstract fun int(routingBuilder: IntRoutingBuilder.(IntRoutingContext) -> Unit)

Adds a route for a numeric path segment.

Link copied to clipboard
abstract fun meta(meta: Meta.() -> Unit)

Adds metadata for the given route.

Link copied to clipboard
abstract fun route(vararg path: String, routingBuilder: PlainRoutingBuilder.(RoutingContext) -> Unit)

Adds a route for the specified path.

Link copied to clipboard
abstract fun string(routingBuilder: StringRoutingBuilder.(StringRoutingContext) -> Unit)

Adds a route for a string path segment.

Link copied to clipboard
abstract fun view(view: @Composable IComponent.() -> Unit)

Adds a view for unmatched routes.