Updated easter egg
This commit is contained in:
+6
-2
@@ -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
|
||||
|
||||
@@ -94,7 +94,8 @@
|
||||
"Kingdom Battles, where kingdoms battle in kingdom battles!",
|
||||
"marquee",
|
||||
"rainbow",
|
||||
"curl https://kingdombattles.net/easteregg"
|
||||
],
|
||||
"easteregg": "You found it!"
|
||||
"You're our one millionth customer!",
|
||||
"We came, we saw, we kicked it's ass!",
|
||||
"curl https://kingdombattles.net/easteregg -H \"Content-Type: application/json\" -d \"{\\\"query\\\":\\\"search\\\"}\""
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user