Launching the server with EngineMain

Report a typo

You want to initialize your application with the EngineMain method. How can you do it?

Reorder lines using drag or arrows. Adjust indentation with left buttons
                get("/") {
              
                EngineMain.main(args)
              
                fun main(args: Array<String>) {
              
                fun Application.module() {
              
                }
              
                routing {
              
                }
              
                call.respondText("Hello, world!")
              
                }
              
                }
              
___

Create a free account to access the full topic