// Beispielanwendung fuer die Hilfebilder: haelt keine Daten, braucht keine Datenbank. const http = require('http'); const port = process.env.PORT || 3000; http .createServer((req, res) => { if (req.url === '/health') { res.writeHead(200, { 'Content-Type': 'application/json' }); res.end(JSON.stringify({ status: 'ok' })); return; } res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); res.end('Beispiel-App' + '

Beispiel-App

Diese Seite dient den Bildern der VCH-Hilfe.

'); }) .listen(port, () => console.log('listening on ' + port));