diff --git a/event.ts b/event.ts index e157d02..b933ed3 100644 --- a/event.ts +++ b/event.ts @@ -1,10 +1,8 @@ -//import { executeCommand } from './broker.js'; function handleClick(): void { console.log("Der Button wurde geklickt!"); alert("Hallo von TypeScript!"); - //executeCommand(); /*fetch("/api/command", { method: "POST" }) .then(res => res.text()) .then(text => console.log("Server sagt:", text));*/ diff --git a/server.ts b/server.ts index 4aa21b5..9d47992 100644 --- a/server.ts +++ b/server.ts @@ -3,7 +3,7 @@ import express from 'express'; import { executeCommand } from './broker'; const app = express(); -const port = 8090; +const port = 8080; app.post('/api/command', (req, res) => { executeCommand();