const express = require('express'); const app = express(); // Serve the sitemap.xml file app.get('/sitemap.xml', (req, res) => { res.sendFile('sitemap.xml', { root: __dirname }); }); // Other routes and middleware for your website... // Start the server app.listen(3000, () => { console.log('Server is running on port 3000'); });
3000
80
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)