Skip to content

Commit

Permalink
feat: favicon (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
heycalmdown authored Oct 30, 2019
1 parent 222f7dc commit 740c559
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"morgan": "^1.9.0",
"pug": "^2.0.3",
"reveal.js": "^3.7.0",
"serve-favicon": "^2.5.0",
"superagent": "^5.0.2"
},
"devDependencies": {
Expand Down
Binary file added public/favicon.ico
Binary file not shown.
2 changes: 2 additions & 0 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as path from 'path';
import * as logger from 'morgan';
import * as cookieParser from 'cookie-parser';
import * as bodyParser from 'body-parser';
import * as favicon from 'serve-favicon';

import { router as routes } from './routes/index';
import { router as users } from './routes/users';
Expand All @@ -14,6 +15,7 @@ app.set('views', path.join(__dirname, '../views'));
app.set('view engine', 'pug');

app.use(logger('dev'));
app.use(favicon(path.join(__dirname, '/public/favicon.ico')))
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
Expand Down

0 comments on commit 740c559

Please sign in to comment.