Tsvetozar Bonev
12/03/2018, 2:01 PMrouting {
route("/route", endpoints())
}
or any other way to move all of the posts, deletes etc. out of this file and into something else.gildor
12/03/2018, 2:05 PMTsvetozar Bonev
12/03/2018, 2:08 PMgildor
12/03/2018, 2:23 PMTsvetozar Bonev
12/03/2018, 2:26 PMfun Route.catalogueEndpoints(eventBus: EventBus) {
get("{id}") {
val response = eventBus.send(
GetCatalogueByIdQuery(
catalogueId = call.getParameter("id")
)
)
call.respondToCommand(response)
}
}
and
routing {
route("/catalogues") {
catalogueEndpoints(eventBus)
}
}
gildor
12/03/2018, 2:32 PMnull
in this snippet?Tsvetozar Bonev
12/03/2018, 2:34 PMTsvetozar Bonev
12/03/2018, 2:34 PMTsvetozar Bonev
12/03/2018, 2:34 PMTsvetozar Bonev
12/03/2018, 2:53 PMTsvetozar Bonev
12/03/2018, 2:54 PMmp
12/03/2018, 3:00 PM