From 21cbfb31c91ba1171194c1bd286b248cf45f8273 Mon Sep 17 00:00:00 2001 From: Christopher Hase Date: Wed, 9 Apr 2025 17:00:35 +0200 Subject: [PATCH] add http-server part 5.11.1 --- event.ts | 2 -- server.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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();