Source of problem : When we are developing the project , Front end applications are usually created 、 Back end applications 、API application ....... I'm lucky this time , Just finish the backend +API Just the module , So I use thinkphp6.0+layui Developed a back-end , Encountered a multi Application module routing problem ; If you have the same problem , I hope I can help you
The project structure is like this :
API The routing of the module is as follows ( There are some errors in the following routing settings ):
Let's verify whether the route is set successfully , Output the following results in the browser :
Careful students should find that , Use
Route::post('register', '/register'); There is a problem , It is recommended to use Route::any( Various debugging problems have not been solved , This card took me all afternoon . You can see this , I hope I can help you )
Because of the above problems , I'll go to the title :thinkphp3.2.3,thinkphp5.0,thinkphp5.1 Have a look ,thinkphp6 Of course, I didn't miss it , Hard pressed brick man ( I ), Only then had the following writing content : Please skip this article .
thinkphp3.2
thinkphp5.0+
thinkphp5.1+
Last , Remember to use composer Download multi Application module : composer require topthink/think-multi-app
If you have any questions, you can ask me
Well written, remember to collect some praise , Thank you for your patience !





![[yolov4] matlab simulation of network target detection based on yolov4 deep learning](/img/f9/31aba8f8bc04ccb16486dc87712ef6.png)


