send files with requests instead of serving the whole repertory in static

This commit is contained in:
Sam Hadow
2025-02-08 18:18:15 +01:00
parent ad0fcca2ee
commit 8250e4f98f
4 changed files with 19 additions and 5 deletions
+8
View File
@@ -6,4 +6,12 @@ router
.route("/")
.get(mainController.root);
router
.route("/style.css")
.get(mainController.style);
router
.route("/script.js")
.get(mainController.script);
module.exports = router;