Routes Prefix voltrb

46 Views Asked by At

Is it possible to prefix or group routes (for a component maybe) Something like

prefix '/admin' do client '/users' , component:'admin', controller: 'users', action:'index' end

Cheers, Kevin

1

There are 1 best solutions below

2
Ryan On

Not at the moment. I'm probably going to rework routes at some point to do something like this. Right now its a little verbose. Probably I'm going to have it where components can be mounted at prefixes, then all of the routes in their route file go below that prefix. That way you can change where components mount outside of the component itself. Might be a little while before I get to it though. (PR's welcome if your feeling ambitious, hit me up on gitter first though - @ryanstout)