This commit is contained in:
parent
1e04e6a295
commit
21cbfb31c9
2 changed files with 1 additions and 3 deletions
2
event.ts
2
event.ts
|
@ -1,10 +1,8 @@
|
||||||
//import { executeCommand } from './broker.js';
|
|
||||||
|
|
||||||
function handleClick(): void {
|
function handleClick(): void {
|
||||||
console.log("Der Button wurde geklickt!");
|
console.log("Der Button wurde geklickt!");
|
||||||
alert("Hallo von TypeScript!");
|
alert("Hallo von TypeScript!");
|
||||||
|
|
||||||
//executeCommand();
|
|
||||||
/*fetch("/api/command", { method: "POST" })
|
/*fetch("/api/command", { method: "POST" })
|
||||||
.then(res => res.text())
|
.then(res => res.text())
|
||||||
.then(text => console.log("Server sagt:", text));*/
|
.then(text => console.log("Server sagt:", text));*/
|
||||||
|
|
|
@ -3,7 +3,7 @@ import express from 'express';
|
||||||
import { executeCommand } from './broker';
|
import { executeCommand } from './broker';
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = 8090;
|
const port = 8080;
|
||||||
|
|
||||||
app.post('/api/command', (req, res) => {
|
app.post('/api/command', (req, res) => {
|
||||||
executeCommand();
|
executeCommand();
|
||||||
|
|
Loading…
Reference in a new issue