diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-08-13 13:41:27 -0500 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-08-13 13:41:27 -0500 |
commit | 8541ecceb35971c76b6cb13613597cd07f95d6e0 (patch) | |
tree | 1d0bf1bb200a71e5c79223564e15540153302994 /src/server.js | |
parent | 69d905dad713253b63da55fb044e68f8a6ed5a55 (diff) |
Remove client JS requirement from /email
Diffstat (limited to 'src/server.js')
-rw-r--r-- | src/server.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.js b/src/server.js index e62094b..d254722 100644 --- a/src/server.js +++ b/src/server.js @@ -203,7 +203,7 @@ function setUpRoutes(models, jwtFunctions, database) { server.get('/admin', (req, res) => res.sendFile(__dirname + "/html/admin.html")); server.get('/login', (req, res) => res.sendFile(__dirname + "/html/login.html")) server.get('/email', (req, res) => res.sendFile(__dirname + "/html/email.html")) - // server.get('/tags', (req, res) => res.sendFile(__dirname + "/html/tags.html")); + server.get('/email-success', (req, res) => res.sendFile(__dirname + "/html/email-success.html")) server.get('/feed', (req, res) => res.sendFile(__dirname + "/html/feed.html")); server.get('/essay', (req, res) => res.sendFile(__dirname + "/html/essay.html")); server.get('/misc', (req, res) => res.sendFile(__dirname + "/html/misc.html")); @@ -317,7 +317,7 @@ function setUpRoutes(models, jwtFunctions, database) { const email = req.body.email; if (name && email) { models.emails.create({"name": name, "address": email}) - res.redirect('/email#success'); + res.redirect('/email-success'); } else { console.debug("Error with email submission") } |