diff options
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/routing')
-rw-r--r-- | src/main/kotlin/pl/treksoft/kvision/routing/Routing.kt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/kotlin/pl/treksoft/kvision/routing/Routing.kt b/src/main/kotlin/pl/treksoft/kvision/routing/Routing.kt index fab8643c..4c9aa98d 100644 --- a/src/main/kotlin/pl/treksoft/kvision/routing/Routing.kt +++ b/src/main/kotlin/pl/treksoft/kvision/routing/Routing.kt @@ -2,6 +2,17 @@ package pl.treksoft.kvision.routing import pl.treksoft.navigo.Navigo -open class Routing : Navigo(null, true, "#!") +open class Routing : Navigo(null, true, "#!") { + + companion object { + fun start() { + routing = Routing() + } + + fun shutdown() { + routing.destroy() + } + } +} var routing = Routing() |