11 lines
229 B
JavaScript
11 lines
229 B
JavaScript
|
const express = require('express');
|
||
|
const app = express();
|
||
|
const port = 8080;
|
||
|
|
||
|
app.get('*', (req, res) => {
|
||
|
res.send(req.headers);
|
||
|
});
|
||
|
|
||
|
app.listen(port, () => {
|
||
|
console.log(`Server listening at http://localhost:${port}`);
|
||
|
});
|