Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以为路由添加前缀或分组(可能对于组件)类似于
前缀'/admin'做客户端'/users',组件:'admin',控制器:'users',动作:'index'结束
干杯,凯文
现在不行。我可能会在某个时候重新设计路线来做这样的事情。现在它有点冗长。可能我会在可以将组件安装在前缀处的地方拥有它,然后其路由文件中的所有路由都低于该前缀。这样,您可以更改组件安装在组件本身之外的位置。不过,我可能还需要一段时间。(如果您有雄心壮志,欢迎 PR,尽管先在 gitter 上联系我 - @ryanstout)