Updated easter egg

This commit is contained in:
2019-06-13 16:53:19 +10:00
parent f7b679bea6
commit 7e7a3f3aaa
2 changed files with 10 additions and 5 deletions
+6 -2
View File
@@ -82,8 +82,12 @@ app.get('/taglinerequest', (req, res) => {
res.send(taglineEngine('tagline'));
});
app.get('/easteregg', (req, res) => {
res.send(taglineEngine('easteregg'));
app.post('/easteregg', (req, res) => {
if (req.body.query === 'search') {
res.status(200).send('You found it!');
} else {
res.status(404).send('Keep searching!');
}
});
//static directories