Disclaimer: This article is the original article CSDN bloggers "Fly-hei", and follow CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/weixin_40555670/article/details/102688961
Reference from the above blog
1. First add routes
route.index.js:
After viewing the discovery
Just quoted under the modules
So should add routes in activity.js
Set up some permissions in roles.
2.