How to set up yii2, the url is directly routed to the default module without adding the module name? Thank you

  question

I have multiple modules under frontend. How do I set yii2? url is directly routed to the default module without module name? Thank you

图片描述
Enter config/web.php, add the following, upload is the controller /index is the default module
‘defaultRoute’=>’upload/index’,