October 2019
Intermediate to advanced
434 pages
11h 54m
English
To begin adding endpoints to our service, we will install a routing feature into our application.
@kotlin.jvm.JvmOverloadsfun Application.module(testing: Boolean = false) { HttpClient(Jetty) { routing { // add routes here } }}
Because Application.routing() takes in a configuration function, we can call routing {} with a lambda, which will enable us to configure the available endpoints for our service.
Read now
Unlock full access