development -> main #1

Open
Christopher.Hase wants to merge 93 commits from development into main
Showing only changes of commit 0754a99bbb - Show all commits

View file

@ -20,12 +20,12 @@ app.use(cors());
app.options('/api/command', cors()); // für eine bestimmte Route app.options('/api/command', cors()); // für eine bestimmte Route
// Verwende die Middleware, um POST-Body als JSON zu lesen // Verwende die Middleware, um POST-Body als JSON zu lesen
app.use(express.json());*/ app.use(express.json());
app.use((req, res, next) => { app.use((req, res, next) => {
console.log('CORS headers set'); console.log('CORS headers set');
next(); next();
}); });*/
app.post('/api/command', (req, res) => { app.post('/api/command', (req, res) => {
executeCommand(); executeCommand();