development -> main #1

Open
Christopher.Hase wants to merge 93 commits from development into main
2 changed files with 6 additions and 3 deletions
Showing only changes of commit bb8c2f06fd - Show all commits

View file

@ -1,12 +1,15 @@
import express from 'express';
import cors from 'cors'; // <--- hinzufügen
import cors from 'cors';
import { executeCommand } from './broker.js';
const app = express();
const port = 8090; //TODO: OR 8080
const port = 8090;
//CORS aktivieren
app.use(cors());
//app.use(cors());
app.use(cors({
origin: 'http://localhost:8080'
}));
app.post('/api/command', (req, res) => {
executeCommand();