This is a question about http request method

var http = require('http');
var fs = require('fs');
var querystring = require('querystring');
const port = 3000;
var server = http.createServer(function(req, res) {
    if(  ){
        fs.readFile('./index.html' ,'utf8' ,function(error, data) {
        res.writeHead(200, {'Content-Type': 'text/html'});
        res.end()
           
        });
    }

    

}).listen(port, function() {
    console.log('Server is running...');
});

If the request method is get,
I am trying to execute a conditional statement.
I don’t know how to write the content in the conditional statement.

It’s a simple question, but I’d appreciate it if you could answer it.