Categories
How to prevent viewing a server file?
I have a code in node js app.use(express.static(__dirname)); And when I go to the search bar on the server.js file, all the code is visible to me, how can I prevent viewing the server file?
app.use(express.static(__dirname));
Answer the question
In order to leave comments, you need to log in
place static files in the public folder
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question