1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

add favicon

This commit is contained in:
Ondrej Synacek
2019-10-20 19:30:32 +02:00
parent 0585203dde
commit 132c6a2807
4 changed files with 29 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
const express = require('express')
const bodyParser = require('body-parser')
const path = require('path')
const favicon = require('serve-favicon')
const crawl = require('./crawler')
const parseHTML = require('./parser')
@@ -12,6 +13,8 @@ const app = express()
app.set('view engine', 'ejs')
app.set('views', path.join(__dirname, 'views'))
app.use(favicon(path.join(__dirname, 'views', 'favicon.ico')))
app.use(bodyParser())
app.get('/', (req, res) => {