iching-broker-level2/server.ts
Christopher Hase 1e04e6a295
Some checks are pending
ci / build (push) Waiting to run
add http-server part 5.11
2025-04-09 16:51:26 +02:00

15 lines
No EOL
351 B
TypeScript

// backend/server.ts
import express from 'express';
import { executeCommand } from './broker';
const app = express();
const port = 8090;
app.post('/api/command', (req, res) => {
executeCommand();
res.status(200).send('Command executed');
});
app.listen(port, '0.0.0.0', () => {
console.log(`Server läuft auf http://0.0.0.0:${port}`);
});