another start commit

This commit is contained in:
2025-04-16 14:48:24 +02:00
parent 128ea04a0a
commit e4794ba4fa
3 changed files with 27 additions and 1 deletions
+2 -1
View File
@@ -2,12 +2,13 @@ const express = require("express");
const app = express();
const swaggerUi = require('swagger-ui-express');
const swaggerDocument = require('./swagger.json');
const path = require("path");
const port = 3000;
app.use('/swagger-ui', swaggerUi.serve, swaggerUi.setup(swaggerDocument));
app.get("/", (request, respond) => {
respond.send("Test")
respond.sendFile(path.join(__dirname, 'structure.png'));
});
app.listen(port, () => {