This statement is equivalent to all requests coming in, searching for the requested file in the current public directory of the project, and returning it when found. Your indez.html and movieDetail.html are in the public directory, and of course they will be returned
All are contents of the express framework, please refer to the official documents http://expressjs.com/en/4x/ap... and http://expressjs.com/en/4x/ap... . Simply put, the meaning of this code is to match all routes and return the specific file under the public path after receiving the request. You can also read the Chinese documentation: http://www.expressjs.com.cn/4... and http://www.expressjs.com.cn/4...
This statement is equivalent to all requests coming in, searching for the requested file in the current public directory of the project, and returning it when found. Your indez.html and movieDetail.html are in the public directory, and of course they will be returned
The route is parsed to the corresponding html page under public
All are contents of the express framework, please refer to the official documents http://expressjs.com/en/4x/ap... and http://expressjs.com/en/4x/ap... . Simply put, the meaning of this code is to match all routes and return the specific file under the public path after receiving the request.
You can also read the Chinese documentation: http://www.expressjs.com.cn/4... and http://www.expressjs.com.cn/4...