fehler behoben
This commit is contained in:
15
express-server/greenlock-https/my-express-app.js
Normal file
15
express-server/greenlock-https/my-express-app.js
Normal 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;
|
Reference in New Issue
Block a user