dave08
07/09/2018, 8:01 PMDeactivated User
07/09/2018, 8:12 PMkenkyee
07/09/2018, 8:18 PMdave08
07/10/2018, 2:03 AMdave08
07/10/2018, 10:26 AMdave08
07/10/2018, 10:27 AMpost("/crm/pay_security_plan").coHandler {
registrationPaymentController.paySecurity(toPaymentRequest())
}
Deactivated User
07/10/2018, 10:27 AMDeactivated User
07/10/2018, 10:27 AMDeactivated User
07/10/2018, 10:28 AMdave08
07/10/2018, 10:28 AMdave08
07/10/2018, 10:30 AMfun RoutingContext.toPaymentRequest(): PaymentRequest =
Klaxon().parse(bodyAsString)!!
Which is a simple example, but there could be request params and headers too...dave08
07/10/2018, 10:31 AMdave08
07/10/2018, 11:35 AMdave08
07/10/2018, 11:37 AMDeactivated User
07/10/2018, 12:17 PMdave08
07/10/2018, 12:33 PMDeactivated User
07/10/2018, 12:34 PMDeactivated User
07/10/2018, 12:34 PMDeactivated User
07/10/2018, 12:35 PM@ContextDsl fun Route.get(path: String): Route = get(path) { } // Note: Lambda intentionally empty
@ContextDsl fun <http://Route.post|Route.post>(path: String): Route = post(path) { } // Note: Lambda intentionally empty