mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
Add favicon
This commit is contained in:
parent
30976671de
commit
e249abb1f1
4
app.js
4
app.js
@ -14,8 +14,7 @@ var app = express();
|
|||||||
app.set('views', path.join(__dirname, 'views'));
|
app.set('views', path.join(__dirname, 'views'));
|
||||||
app.set('view engine', 'jade');
|
app.set('view engine', 'jade');
|
||||||
|
|
||||||
// uncomment after placing your favicon in /public
|
app.use(favicon(__dirname + '/public/favicon.ico'));
|
||||||
//app.use(favicon(__dirname + '/public/favicon.ico'));
|
|
||||||
app.use(logger('dev'));
|
app.use(logger('dev'));
|
||||||
app.use(bodyParser.json());
|
app.use(bodyParser.json());
|
||||||
app.use(bodyParser.urlencoded({ extended: false }));
|
app.use(bodyParser.urlencoded({ extended: false }));
|
||||||
@ -25,6 +24,7 @@ app.use(express.static(path.join(__dirname, 'public')));
|
|||||||
app.use('/', routes);
|
app.use('/', routes);
|
||||||
app.use('/avatars', avatars);
|
app.use('/avatars', avatars);
|
||||||
|
|
||||||
|
|
||||||
// catch 404 and forward to error handler
|
// catch 404 and forward to error handler
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
var err = new Error('Not Found');
|
var err = new Error('Not Found');
|
||||||
|
|||||||
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Loading…
x
Reference in New Issue
Block a user