helpermethod / membrane-kotlin-dsl

0 stars 0 forks source link

Create router top level function #5

Open helpermethod opened 6 years ago

helpermethod commented 6 years ago
fun router(init: RouterSpec.() -> Unit) {
    val router = HttpRouter()
    router.isHotDeploy = false
    RouterSpec(router).init()
    router.start()
}
helpermethod commented 6 years ago

Improvements