richard.herbert
09/03/2022, 5:13 PMcoldbox create app myApp rest-hmvc
and it's created the endpoints as /api/v1/echo/
but with my app I want it to present as /v1/echo/
but keep the /modules_app/api/modules_app/v1/handlers/Echo.cfc
structure in the OS.
I'm struggling to get the /api/
out of the /api/v1/
route.
What am I missing?richard.herbert
09/03/2022, 5:15 PMsana
09/03/2022, 6:16 PMroute("/v1/").toModuleRouting( "/api/" );
https://coldbox.ortusbooks.com/the-basics/routing/routing-dsl#terminatorsrichard.herbert
09/04/2022, 1:45 PM/config/Router.cfc
route( '/v1' ).toModuleRouting( 'v1' );