Posts by Rafael Laube • 1 point
1 post
-
0
votes2
answers126
viewsA: execute a javascript file when the user accesses a Node route
If you want to run this function in html, you can use express PUBLIC. app.use("/", express.static(__dirname + "/sua-pasta")) With it you can route a folder in the server directory, and in html, just…