We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 734296a commit b21f169Copy full SHA for b21f169
2 files changed
index.js
@@ -5,11 +5,23 @@ try {
5
6
const { PORT = 9090 } = process.env;
7
8
- app.use(express.static('public'));
+ /*
9
+ app.use(
10
+ express.static('public')
11
+ );
12
+ */
13
- app.get('/logtest', function (req, res) {
- console.log('logtest');
- res.send('logtest')
14
+ app.get('/', (req, res) => {
15
+ res.send('hostname: <p><pre>'+JSON.stringify(process.env)+'</pre>')
16
+ });
17
+
18
+ app.get('/hello', (req, res) => {
19
+ res.sendFile(__dirname + '/public/index.html');
20
21
22
+ app.get('/sendtolog', function (req, res) {
23
+ console.log('logtest: '+req.query.message);
24
+ res.send('logtest: '+req.query.message)
25
});
26
27
server.listen(PORT, () => console.log(`App running on port ${PORT}`));
public/index.html
@@ -1 +1 @@
1
-hello
+bye bye
0 commit comments