How to set custom favicon in Express?

前端 未结 14 1915
星月不相逢
星月不相逢 2020-12-12 12:49

I recently started working in Node.js and in the app.js file there is this line:

app.use(express.favicon());

Now, how do I set up my own cu

14条回答
  •  生来不讨喜
    2020-12-12 13:11

    If you have you static path set, then just use the in your views. No need for anything else. Please make sure that you have your images folder inside the public folder.

提交回复
热议问题