Skip to content

Commit f4398f2

Browse files
committed
vpn handler
1 parent e8f21d8 commit f4398f2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ app.get('/', async (req, res) => {
5858
});
5959

6060

61-
app.get('/generate/:data', async (req, res) => {
61+
app.get('/generate/:data', async (req, res) => { // Because URL PARAMS ARE COOLER
6262
// this can be stored in the Database now
6363
console.log(atob(req.params.data));
6464
res.json({cookie: req.params.data})
6565
})
6666

67+
app.get('/if-vpn/:data', async(req, res) => {
68+
return res.json({message: "yay i work"})
69+
})
70+
6771
const port = process.env.PORT || 4000;
6872
app.listen(port, () => {
69-
console.log('Example app listening on port ' + port);
73+
console.log(`Waiting on port for someone :) ${port}`);
7074
});

0 commit comments

Comments
 (0)