Express routing – optional param or allow all?

后端 未结 0 1005
不思量自难忘°
不思量自难忘° 2020-12-03 06:51

I\'m requesting my pages in 2 languages – de and en:

app.get(\'/:locale(de|en)?\', async (req, res) => {
    console.log(req.para         


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