diff --git a/README.md b/README.md index 806f022..dc4e0b6 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ When a pod with the app is initally started, one email will be sent to the confi The backend server is running inside the pod on the address http://localhost:8090/command. If a POST is sent to this address, the server will run the main logic of this app: An E-Mail with an I-Ching horoscope (provided by the library app) will be sent to the configured email address. -The backend server can be tested from inside the pod by calling 'curl -X POST http://localhost:8090/command' from the console. +The backend server can be tested from inside the pod by calling 'curl -X POST http://localhost:8090/iching/api/command' from the console. ## HTTP Server diff --git a/backend/server.ts b/backend/server.ts index 1a6721d..c045e0e 100644 --- a/backend/server.ts +++ b/backend/server.ts @@ -7,8 +7,6 @@ const port = 8090; app.use(cors()); -//app.post('/api/command', (req, res) => { - app.post('/iching/api/command', (req, res) => { executeCommand(); res.status(200).send('Command executed\n'); diff --git a/frontend/index.html b/frontend/index.html index 0bc46b0..010d51a 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,12 +1,64 @@ - - - Button mit TypeScript - - -

Mein Button

- - - + + + + Your I-Ging Horoscope + + + +
+

🧘 My I-Ging Horoscope

+

Click on the Button to receive your personal Horoscope. 100% accuracy guaranteed!

+ + +
+ + + \ No newline at end of file diff --git a/old.2.ingress.yaml b/old.2.ingress.yaml deleted file mode 100644 index 763fe2f..0000000 --- a/old.2.ingress.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: iching-ingress - namespace: argocd - annotations: - nginx.ingress.kubernetes.io/rewrite-target: /$2 -spec: - ingressClassName: nginx - rules: - - host: 192-168-197-2.c-one-infra.de - http: - paths: - # API → kein Rewrite - - path: /iching/api(/|$)(.*) - pathType: ImplementationSpecific - backend: - service: - name: iching-service - port: - number: 81 - - # Frontend → mit Rewrite - - path: /iching(/|$)(.*) - pathType: ImplementationSpecific - backend: - service: - name: iching-service - port: - number: 80 - tls: - - hosts: - - 192-168-197-2.c-one-infra.de - secretName: argocd-net-tls \ No newline at end of file diff --git a/old.ingress.yaml b/old.ingress.yaml deleted file mode 100644 index a1acb56..0000000 --- a/old.ingress.yaml +++ /dev/null @@ -1,31 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: iching-ingress - namespace: argocd - annotations: - nginx.ingress.kubernetes.io/rewrite-target: /$2 -spec: - ingressClassName: nginx - rules: - - host: 192-168-197-2.c-one-infra.de - http: - paths: - - path: /iching/api(/|$)(.*) - pathType: ImplementationSpecific - backend: - service: - name: iching-service - port: - number: 81 - - path: /iching(/|$)(.*) - pathType: ImplementationSpecific - backend: - service: - name: iching-service - port: - number: 80 - tls: - - hosts: - - 192-168-197-2.c-one-infra.de - secretName: argocd-net-tls \ No newline at end of file