Skip to content

Commit

Permalink
add log to frontend
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Barbosa <tbarbos@hotmail.com>
  • Loading branch information
t1agob committed May 15, 2024
1 parent cb2a7fb commit 7652a15
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions deploy/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dapr-cafe-ingress
namespace: default
spec:
ingressClassName: webapprouting.kubernetes.azure.com
rules:
- http:
paths:
- backend:
service:
name: order-management
port:
number: 80
path: /order
pathType: Prefix
1 change: 1 addition & 0 deletions frontend/src/components/OrderCommand.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type Props = {
function OrderCommand({food, drink}: Props) {

const apiUrl = process.env.API_URL;
console.log("API URL: " + apiUrl);

function submitOrder() {
fetch(`${apiUrl}/order`, {
Expand Down

0 comments on commit 7652a15

Please sign in to comment.