From 02bd76305fc4e1a9c0298e25b5856eed20cdd7f6 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Mon, 5 Aug 2024 14:06:17 -0600 Subject: [PATCH] Add / --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 5b762d6..68d4c1b 100644 --- a/index.js +++ b/index.js @@ -11,6 +11,9 @@ db.on('open', () => { app.use(express.json()); app.use(express.urlencoded({ extended: true })); +app.get("/", (req, res) => { + res.sendStatus(204); +}); // Add your routes and middleware here app.get('/:shortUrl', (req, res) => { // Shortened URL