mmaillot
10/13/2017, 3:34 PMglobalFilters.then(routes(
"/api/1/groupA/endpointA" bind GET to { ... }
"/api/1/groupA/endpointB" bind GET to { ... }
"/api/1/groupB/endpointA" bind GET to { ... }
"/api/1/groupB/endpointB" bind GET to { ... }
))
To something like
globalFilters.then(
group("/api/v1") bind
group("/groupA") bind routes(
"/endpointA" bind GET to { ... }
"/endpointB" bind GET to { ... }
)
group("/groupB") bind routes(
"/endpointA" bind GET to { ... }
"/endpointB" bind GET to { ... }
)
))