Node.js - HTTP Module
Examine this Node.js server code snippet for manual routing:
What is the main issue with this code?
const http = require('http');
const server = http.createServer((req, res) => {
if (req.url == '/home') {
res.write('Welcome Home');
res.end();
}
});
server.listen(3000);What is the main issue with this code?
