iching-broker-level2/server.ts
Christopher Hase 3d9fd745cd
Some checks are pending
ci / build (push) Waiting to run
add http-server part 5.8
2025-04-09 15:47:06 +02:00

15 lines
No EOL
338 B
TypeScript

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