Add index with express core

This commit is contained in:
2023-01-10 22:59:04 +01:00
parent 909057df02
commit 860fabe2af

24
index.js Normal file
View File

@@ -0,0 +1,24 @@
const express = require("express");
var crypto = require('crypto');
const { finished } = require("stream");
const app = express();
const PORT = 6968;
let jobs = {
queued: {},
waiting: {},
finished: {}
}
app.use(express.json());
app.get('/', (req, res) => {
res.send('Job handling server')
})
app.listen(PORT, () => {
console.log("Job Server running")
})