Route

kreuzberg.extras.Route
See theRoute companion object
trait Route

A Route within SimpleRouter

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EagerRoute
class DependentRoute[S]
class SimpleRoute
class LazyRoute[S]

Members list

Value members

Abstract methods

def canHandle(resource: UrlResource): Boolean

Returns true if the route can handle a given path.

Returns true if the route can handle a given path.

Attributes

def preTitle(resource: UrlResource): String

Title displayed while loading.

Title displayed while loading.

Attributes

def target(resource: UrlResource)(using AssemblerContext): Effect[RoutingTarget]

Execute the route, can load lazy.

Execute the route, can load lazy.

Attributes