From fbcdb87950abb5258b27df9f01084972ec8beab2 Mon Sep 17 00:00:00 2001 From: Nico Poegel <nico_benjamin.poegel@student.reutlingen-university.de> Date: Wed, 22 Feb 2023 13:48:42 +0100 Subject: [PATCH] changed regex syntax to include the campaign id in myaktion ingress route --- helm-msa/templates/ingress-route/myaktion-ingress-route.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helm-msa/templates/ingress-route/myaktion-ingress-route.yml b/helm-msa/templates/ingress-route/myaktion-ingress-route.yml index f5df42a..17346cc 100644 --- a/helm-msa/templates/ingress-route/myaktion-ingress-route.yml +++ b/helm-msa/templates/ingress-route/myaktion-ingress-route.yml @@ -9,7 +9,7 @@ metadata: spec: routes: - kind: Rule - match: Path(`/campaigns/[0-9]{1,}/dontations`) && Method(`POST`) + match: Path(`/campaigns/{id:[0-9]+}/dontations`) && Method(`POST`) services: - kind: Service name: myaktion-service @@ -17,7 +17,7 @@ spec: port: 8080 - kind: Rule - match: Path(`/campaigns/[0-9]{1,}/dontations`) && Method(`GET`) + match: Path(`/campaigns/{id:[0-9]+}/dontations`) && Method(`GET`) middlewares: - name: fw-auth-mw namespace: default @@ -28,7 +28,7 @@ spec: port: 8080 - kind: Rule - match: Path(`/campaigns`) || Path(`/campaigns/[0-9]{1,}`) + match: Path(`/campaigns`) || Path(`/campaigns/{id:[0-9]+}`) middlewares: - name: fw-auth-mw namespace: default -- GitLab