How nodejs returns the path of a picture with http

for example, there is a node project locally, and then the uploaded file is saved in / server/uploads with port 4500. If the directory structure is as follows

clipboard.png

what if the file path in uploads is returned to the front end, similar to localhost:4500/uploads/filename.png or localhost:4500/server/uploads/filename.pgn

Mar.11,2021

then you need to configure the corresponding route at the backend

Menu