Commit 3e8c6bc8 authored by Porter Libby's avatar Porter Libby
Browse files

add ec-ifs icon

parent 2a61fba8
...@@ -7,12 +7,14 @@ const app = express(); ...@@ -7,12 +7,14 @@ const app = express();
const q = require('./queries'); const q = require('./queries');
var path = require('path'); var path = require('path');
var rest = new require('restful-api')(app); var rest = new require('restful-api')(app);
var favicon = require('serve-favicon');
app.set('view engine', 'ejs'); app.set('view engine', 'ejs');
app.get('/', function(req, res) { app.get('/', function(req, res) {
res.render("index",{ res.render("index",{
}) })
}); });
app.use(favicon(__dirname + '/public/img/ec-ifs.png'));
app.use(express.static(__dirname + '/public')); app.use(express.static(__dirname + '/public'));
......
...@@ -14,7 +14,8 @@ ...@@ -14,7 +14,8 @@
"express": "^4.17.1", "express": "^4.17.1",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"pg": "^8.7.1", "pg": "^8.7.1",
"restful-api": "^0.1.8" "restful-api": "^0.1.8",
"serve-favicon": "^2.5.0"
} }
}, },
"node_modules/accepts": { "node_modules/accepts": {
...@@ -597,6 +598,31 @@ ...@@ -597,6 +598,31 @@
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
}, },
"node_modules/serve-favicon": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.5.0.tgz",
"integrity": "sha1-k10kDN/g9YBTB/3+ln2IlCosvPA=",
"dependencies": {
"etag": "~1.8.1",
"fresh": "0.5.2",
"ms": "2.1.1",
"parseurl": "~1.3.2",
"safe-buffer": "5.1.1"
},
"engines": {
"node": ">= 0.8.0"
}
},
"node_modules/serve-favicon/node_modules/ms": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
},
"node_modules/serve-favicon/node_modules/safe-buffer": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
},
"node_modules/serve-static": { "node_modules/serve-static": {
"version": "1.14.1", "version": "1.14.1",
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
...@@ -1140,6 +1166,30 @@ ...@@ -1140,6 +1166,30 @@
} }
} }
}, },
"serve-favicon": {
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.5.0.tgz",
"integrity": "sha1-k10kDN/g9YBTB/3+ln2IlCosvPA=",
"requires": {
"etag": "~1.8.1",
"fresh": "0.5.2",
"ms": "2.1.1",
"parseurl": "~1.3.2",
"safe-buffer": "5.1.1"
},
"dependencies": {
"ms": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
"integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg=="
},
"safe-buffer": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
"integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg=="
}
}
},
"serve-static": { "serve-static": {
"version": "1.14.1", "version": "1.14.1",
"resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz",
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"express": "^4.17.1", "express": "^4.17.1",
"lodash": "^4.17.15", "lodash": "^4.17.15",
"pg": "^8.7.1", "pg": "^8.7.1",
"restful-api": "^0.1.8" "restful-api": "^0.1.8",
"serve-favicon": "^2.5.0"
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment