Start init

This commit is contained in:
IM23a-bachmannj2
2025-04-16 14:25:20 +02:00
parent 4858c13185
commit 128ea04a0a
3 changed files with 53 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
const express = require("express");
const app = express();
const swaggerUi = require('swagger-ui-express');
const swaggerDocument = require('./swagger.json');
const port = 3000;
app.use('/swagger-ui', swaggerUi.serve, swaggerUi.setup(swaggerDocument));
app.get("/", (request, respond) => {
respond.send("Test")
});
app.listen(port, () => {
console.log("Server is running on port " + port);
})