fehler behoben

This commit is contained in:
Lukas Nowy
2018-12-16 23:55:39 +01:00
parent dfb2a725c7
commit befb44764d
11 changed files with 1 additions and 1 deletions

View File

@ -0,0 +1,15 @@
'use strict';
var express = require('express');
var app = express();
app.use('/', function (req, res) {
res.setHeader('Content-Type', 'text/html; charset=utf-8');
res.end('Hello, World!\n\n💚 🔒.js');
});
// DO NOT DO app.listen() unless we're testing this directly
if (require.main === module) { app.listen(3000); }
// Instead do export the app:
module.exports = app;