Updated easter egg
This commit is contained in:
+6
-2
@@ -82,8 +82,12 @@ app.get('/taglinerequest', (req, res) => {
|
|||||||
res.send(taglineEngine('tagline'));
|
res.send(taglineEngine('tagline'));
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get('/easteregg', (req, res) => {
|
app.post('/easteregg', (req, res) => {
|
||||||
res.send(taglineEngine('easteregg'));
|
if (req.body.query === 'search') {
|
||||||
|
res.status(200).send('You found it!');
|
||||||
|
} else {
|
||||||
|
res.status(404).send('Keep searching!');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//static directories
|
//static directories
|
||||||
|
|||||||
@@ -94,7 +94,8 @@
|
|||||||
"Kingdom Battles, where kingdoms battle in kingdom battles!",
|
"Kingdom Battles, where kingdoms battle in kingdom battles!",
|
||||||
"marquee",
|
"marquee",
|
||||||
"rainbow",
|
"rainbow",
|
||||||
"curl https://kingdombattles.net/easteregg"
|
"You're our one millionth customer!",
|
||||||
],
|
"We came, we saw, we kicked it's ass!",
|
||||||
"easteregg": "You found it!"
|
"curl https://kingdombattles.net/easteregg -H \"Content-Type: application/json\" -d \"{\\\"query\\\":\\\"search\\\"}\""
|
||||||
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user