diff --git a/public/check-status.html b/public/index.html similarity index 66% rename from public/check-status.html rename to public/index.html index 6f71748..b0a69b4 100644 --- a/public/check-status.html +++ b/public/index.html @@ -4,7 +4,7 @@ Document - +

Hello there...

diff --git a/scripts/routes/other/getstatus.js b/scripts/routes/other/getstatus.js deleted file mode 100644 index 7570b8c..0000000 --- a/scripts/routes/other/getstatus.js +++ /dev/null @@ -1,8 +0,0 @@ -const path = require('path'); -const router = require('express').Router(); - -router.get('/status', (req, res) => { - res.sendFile(path.join(__dirname, '../../../public/check-status.html')); -}); - -module.exports = router; \ No newline at end of file diff --git a/scripts/routes/other/route-index.js b/scripts/routes/other/route-index.js new file mode 100644 index 0000000..a89972e --- /dev/null +++ b/scripts/routes/other/route-index.js @@ -0,0 +1,8 @@ +const path = require('path'); +const router = require('express').Router(); + +router.get('/', (req, res) => { + res.sendFile(path.join(__dirname, '../../../public/index.html')); +}); + +module.exports = router; \ No newline at end of file diff --git a/server.js b/server.js index 8f83748..2f52214 100644 --- a/server.js +++ b/server.js @@ -17,11 +17,10 @@ app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.use(express.static(path.join(__dirname, 'static'))); app.use(express.static(path.join(__dirname, '/scripts'))); -app.use(express.static(path.join(__dirname, '/scripts/modules'))); -const get_status = require('./scripts/routes/other/getstatus.js'); +const getIndexRoute = require('./scripts/routes/other/route-index'); -app.use(get_status); +app.use('/', getIndexRoute); app.listen(process.env.APP_PORT, () => { console.log("\x1b[32m"); diff --git a/static/styles-main.css b/static/Styles/styles-main.css similarity index 100% rename from static/styles-main.css rename to static/Styles/styles-main.css