init

fun init(root: String? = null, useHash: Boolean = true, notFoundHandler: (String) -> Any? = null): Routing(source)

Initialize Ballast routing module.

Parameters

root

the root path of the application

useHash

whether to use hash based routing

notFoundHandler

a function called when no route matches