How to create a middleware to respond to all static file requests on express?

后端 未结 0 1309
时光取名叫无心
时光取名叫无心 2021-01-18 22:30

This is express recommendation on how to serve static files:

https://expressjs.com/en/starter/static-files.html

app.use(express.static(\'public\'))


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