In this example, we define an /upload route that handles the image upload. When a POST request is made to this route, multer middleware is invoked to process the file upload. If the upload is successful, the filename of the uploaded image is extracted from req.file.filename. Then, we return a JSON response containing the imageName