Static service hosting

app.use('/uploads',express.static('uploads')) uploads //is the name of the folder you want to host

After hosting, you can use the directory under the file, don't need to add the file name

Guess you like

Origin blog.csdn.net/Aa__Ki/article/details/108786077