我正在使用sails开发一个Web应用程序。在这个应用程序中,将有两个不同类型的用户,即管理员和客户。所以我们需要不同的布局和很多路线。我需要一些基本的了解。
for frontend
'/about': {
controller : 'aboutController',
action : 'index'
},
'/contact': {
controller : 'contactController',
action : 'index'
}
for admin
'admin':{
'/report': {
controller : 'ReportController',
action : 'loadform'
},
'/setting': {
controller : 'settingController',
action : 'index'
}
}
2.如何在控制器中维护嵌套文件夹。喜欢