Skip to content

Routes

[Source]

Immutable route table mapping paths to LiveView factories.

Created by Router.build(). Strips query strings before matching, so a route registered as "/path" matches requests to "/path?foo=bar".

class val Routes

Constructors

create

[Source]

new val create(
  routes: Array[(String val , Factory val)] val)
: Routes val^

Parameters

Returns


Public Functions

apply

[Source]

Look up a factory for the given path, stripping any query string first.

fun box apply(
  path: String val)
: (Factory val | None val)

Parameters

Returns