aboutsummaryrefslogtreecommitdiff
path: root/src/server.js
diff options
context:
space:
mode:
authorMark Powers <mark@marks.kitchen>2020-12-24 12:48:58 -0600
committerMark Powers <mark@marks.kitchen>2020-12-24 12:48:58 -0600
commit572671a916335fbbe8766b37b683b8a585c49abd (patch)
tree317feb8a26a87d62977895d860c522498773a976 /src/server.js
parentee5600aac9548075634f51113f9b5ed078f82e12 (diff)
Add background changer and css
Diffstat (limited to 'src/server.js')
-rw-r--r--src/server.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/server.js b/src/server.js
index 81f1edb..d820cd7 100644
--- a/src/server.js
+++ b/src/server.js
@@ -324,8 +324,8 @@ function setUpRoutes(models, jwtFunctions, database, templates) {
})
- server.get('/favicon.ico', (req, res) => res.sendFile(__dirname + "/icon/favicon.ico"))
- server.get('/favicon.svg', (req, res) => res.sendFile(__dirname + "/icon/favicon.svg"))
+ server.get('/favicon.ico', (req, res) => res.sendFile(__dirname + "/res/favicon.ico"))
+ server.get('/favicon.svg', (req, res) => res.sendFile(__dirname + "/res/favicon.svg"))
server.get('/css/:id', (req, res) => {
res.sendFile(__dirname + "/css/" + req.params.id);
});
@@ -338,6 +338,9 @@ function setUpRoutes(models, jwtFunctions, database, templates) {
server.get('/js/:id', (req, res) => {
res.sendFile(__dirname + "/js/" + req.params.id);
});
+ server.get('/res/:id', (req, res) => {
+ res.sendFile(__dirname + "/res/" + req.params.id);
+ });
server.get('/feed.xml', async (req, res) => {
var feed = new rss({
@@ -345,7 +348,7 @@ function setUpRoutes(models, jwtFunctions, database, templates) {
description: "Posts from marks.kitchen",
feed_url: "https://marks.kitchen/rss",
site_url: "https://marks.kitchen",
- webMaster: "webmaster@marks.kitchen",
+ webMaster: "webmaster@marks.kitchen (Mark Powers)",
copyright: "Mark Powers"
})
var posts = await models.posts.findAll({