From 6398baa64e56efe5a7a5fdbac90f751d54ac4e73 Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 3 Nov 2024 20:55:19 -0700 Subject: [PATCH] Guh --- index.js | 2 +- static/index.html | 85 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 static/index.html diff --git a/index.js b/index.js index ff2d85d..16bf3cb 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.get("/", (req, res) => { - res.status(404).json({ error: 'Not found' }); + res.sendFile(__dirname + "/static/index.html"); }); // Add your routes and middleware here diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..88dfe54 --- /dev/null +++ b/static/index.html @@ -0,0 +1,85 @@ + + + + + + + KCA URL Shortener + + + + + + + + + + + +