diff --git a/helm-msa/templates/ingress-route/myaktion-ingress-route.yml b/helm-msa/templates/ingress-route/myaktion-ingress-route.yml index 83f4b77ee2c781f680cf06043dd28956d06042ea..f5df42a887b0b2fbd7fc7bc01ad9c4890fe515c2 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]{1,}/dontations`) && Method(`POST`) services: - kind: Service name: myaktion-service namespace: default port: 8080 + + - kind: Rule + match: Path(`/campaigns/[0-9]{1,}/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]{1,}`) + middlewares: + - name: fw-auth-mw + namespace: default + services: + - kind: Service + name: myaktion-service + namespace: default + port: 8080 + - kind: Rule match: PathPrefix(`/monitor.html`) services: