This commit is contained in:
2023-02-28 20:39:49 +01:00
parent 897b1629f6
commit f419f819b1
5 changed files with 41 additions and 0 deletions

18
oracle-test/server.js Normal file
View File

@@ -0,0 +1,18 @@
const express = require('express');
const app = express();
let port = 8000;
// read the port from config.json
const config = require('./config.json');
port = config.port;
// create an http server with some endpoints GET
// GET /validate -> return "I thought I would sail about a little and see the watery part of the world"
app.get('/validate', (req, res) => {
res.send('I thought I would sail about a little and see the watery part of the world');
});
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
});