📅  最后修改于: 2022-03-11 15:03:02.257000             🧑  作者: Mango
To render static files use the static middleware like so:
app.use(express.static(path.join(__dirname, 'public')));
This tells express to look for static files in the public directory
of the application
Once you have specified this simply point your browser to the location
of the file and it should display