how to make static files in a folder public - hogehoge666/syno_moments_slider GitHub Wiki

  • Create a folder named "static" and place all the static files.
  • Add the following lines to the code.
app.use(express.static('static'));
app.get('/', (request, response) => {
  // no code requires here, but you still need this empty routing policy.
});