How does node.js display html, which contains pictures

  node.js, question

Server code:

var express = require('express');
 var fs = require('fs');
 var http = require('http');
 var app = express();
 app.get('/',function (req,res) {
 if(req.url!  =="/favicon.ico")
 res.writeHead(200,{"Content-Type":"text/html"});
 Res.end (fs.readfilesync (_ _ dirname plus' /test2.html');
 });
 app.listen(80,"192.168.1.200");

Html code

<!  DOCTYPE html>
 <html lang="en">
 <head>
 <meta charset="UTF-8">
 <title>Document</title>
 </head>
 <body>
 <img src="image/1.jpg">
 </body>
 </html>

After the browser opens 192.168.1.200
Error: GEThttp://192.168.1.200/image/1.jpg404(Not Found)?

Beginners in a daze still hope to pass by the Great Xia and give directions.

Express provides built-in middleware express.static to set up static files such as pictures, CSS, JavaScript, etc.
You can use express.static middleware to set the static file path. For example, if you put pictures, CSS, JavaScript files in the public directory, you can write as follows:
app.use(express.static(‘public’));
We can put some pictures in the public/images directory as follows:
node_modules
server.js
public/
public/images
public/images/logo.png
Let’s modify the “Hello Word” application to add the function of processing static files.
I hope it will be helpful to your question.