Sending index.html if the user visits with the trailing URL (e.g. http://localhost:3000/foo)

前端 未结 0 1674
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 10:59

I\'m trying to make my website work with any trailing URL.

I\'m using the following code in the server.

app.get("/*", (req, res) => {
  re         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题