I mean, can I change this code ``` globalFilters....
# http4k
m
I mean, can I change this code
Copy code
globalFilters.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
Copy code
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 { ... }
    )
))