14 lines
283 B
JavaScript
14 lines
283 B
JavaScript
|
const express = require('express');
|
||
|
|
||
|
const PORT = process.env.PORT || 5000;
|
||
|
|
||
|
const app = express();
|
||
|
|
||
|
app.use(function (request) {
|
||
|
request.connection.destroy();
|
||
|
});
|
||
|
|
||
|
const server = app.listen(PORT, function () {
|
||
|
console.log('Server started on port ' + server.address().port);
|
||
|
});
|