Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

icon api node js to browser

var connect = require('connect')
var favicon = require('serve-favicon')
var path = require('path')

var app = connect()
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico')))

// Add your middleware here, etc.

app.listen(3000)
Source by expressjs.com #
 
PREVIOUS NEXT
Tagged: #icon #api #node #js #browser
ADD COMMENT
Topic
Name
3+5 =