Nezteb
04/24/2019, 10:33 PM/api/v1
three times here?dave
04/25/2019, 2:35 AMNezteb
04/25/2019, 2:49 AM"/" bind contract
dave
04/25/2019, 5:03 AMsahil Lone
04/25/2019, 8:03 AMval ApiVersioningRouter: (RoutingHttpHandler) -> RoutingHttpHandler = {
routes(
"/api/v1" bind it
)
}
routes(
ApiVersioningRouter(
someRouter
)
)
dave
04/25/2019, 8:23 AMval app = routes(
"/api/v1" bind routes(
contract {
"/foo" bindContract GET to { Response(Status.OK) }
},
routes(
"/some/other" bind GET to { Response(Status.OK) }
),
"/yet/another" bind GET to { Response(Status.OK) }
)
)
/api/v1/foo
, /api/v1/some/other
etc...Nezteb
04/25/2019, 2:40 PM