diff --git a/helm-msa/templates/ingress-route/myaktion-ingress-route.yml b/helm-msa/templates/ingress-route/myaktion-ingress-route.yml index 83f4b77ee2c781f680cf06043dd28956d06042ea..964f6b063f2fab8d98847958134a422856e9efba 100644 --- a/helm-msa/templates/ingress-route/myaktion-ingress-route.yml +++ b/helm-msa/templates/ingress-route/myaktion-ingress-route.yml @@ -9,12 +9,35 @@ metadata: spec: routes: - kind: Rule - match: PathPrefix(`/campaigns`) + match: Path(`/campaigns/[0-9]+/dontations`) && Method(`POST`) services: - kind: Service name: myaktion-service namespace: default port: 8080 + + - kind: Rule + match: Path(`/campaigns/[0-9]+/dontations`) && Method(`GET`) + middlewares: + - name: fw-auth-mw + namespace: default + services: + - kind: Service + name: myaktion-service + namespace: default + port: 8080 + + - kind: Rule + match: Path(`/campaigns`) || Path(`/campaigns/[0-9]+`) + middlewares: + - name: fw-auth-mw + namespace: default + services: + - kind: Service + name: myaktion-service + namespace: default + port: 8080 + - kind: Rule match: PathPrefix(`/monitor.html`) services: