aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/pl/treksoft/kvision/routing
diff options
context:
space:
mode:
authorRobert Jaros <rjaros@finn.pl>2018-02-04 21:49:23 +0100
committerRobert Jaros <rjaros@finn.pl>2018-02-04 21:49:23 +0100
commit70d2f14d4a34f841a3161482eec5d355cbd755f6 (patch)
tree847cb461a2f261f6f2b3a6b0ebbc6918f1da0467 /src/main/kotlin/pl/treksoft/kvision/routing
parent9665fe692681bc958e55d00cc0d0b238b7aee694 (diff)
downloadkvision-70d2f14d4a34f841a3161482eec5d355cbd755f6.tar.gz
kvision-70d2f14d4a34f841a3161482eec5d355cbd755f6.tar.bz2
kvision-70d2f14d4a34f841a3161482eec5d355cbd755f6.zip
Refactoring packages layout
Diffstat (limited to 'src/main/kotlin/pl/treksoft/kvision/routing')
-rw-r--r--src/main/kotlin/pl/treksoft/kvision/routing/Routing.kt13
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()