页面路径index.html位于localhost:8080/opinion/目录,
API接口路径位于localhost:8080/opinion/rest/...下。
应该怎样配置服务器使浏览器请求带有react-router路径的url(如:localhost:8080/opinion/about)时返回index.html,而且不影响API接口的调用。
页面路径index.html位于localhost:8080/opinion/目录,
API接口路径位于localhost:8080/opinion/rest/...下。
应该怎样配置服务器使浏览器请求带有react-router路径的url(如:localhost:8080/opinion/about)时返回index.html,而且不影响API接口的调用。