send files with requests instead of serving the whole repertory in static
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user