manage favicon with express app

Solutions on MaxInterview for manage favicon with express app by the best coders in the world

showing results for - "manage favicon with express app"
Salvatore
24 Jan 2017
1var express = require('express')
2var favicon = require('serve-favicon')
3var path = require('path')
4
5var app = express()
6app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')))
7
8// Add your routes here, etc.
9
10app.listen(3000)
11