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

This commit is contained in:
Sam Hadow committed 2025-02-08 18:18:15 +01:00
1 parent ad0fcca2ee
commit 8250e4f98f
4 files changed
+19 -5

No files matched your search

+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;