Skip to content
Snippets Groups Projects
Commit fbcdb879 authored by Nico Benjamin Pögel's avatar Nico Benjamin Pögel
Browse files

changed regex syntax to include the campaign id in myaktion ingress route

parent b62014b5
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ metadata: ...@@ -9,7 +9,7 @@ metadata:
spec: spec:
routes: routes:
- kind: Rule - kind: Rule
match: Path(`/campaigns/[0-9]{1,}/dontations`) && Method(`POST`) match: Path(`/campaigns/{id:[0-9]+}/dontations`) && Method(`POST`)
services: services:
- kind: Service - kind: Service
name: myaktion-service name: myaktion-service
...@@ -17,7 +17,7 @@ spec: ...@@ -17,7 +17,7 @@ spec:
port: 8080 port: 8080
- kind: Rule - kind: Rule
match: Path(`/campaigns/[0-9]{1,}/dontations`) && Method(`GET`) match: Path(`/campaigns/{id:[0-9]+}/dontations`) && Method(`GET`)
middlewares: middlewares:
- name: fw-auth-mw - name: fw-auth-mw
namespace: default namespace: default
...@@ -28,7 +28,7 @@ spec: ...@@ -28,7 +28,7 @@ spec:
port: 8080 port: 8080
- kind: Rule - kind: Rule
match: Path(`/campaigns`) || Path(`/campaigns/[0-9]{1,}`) match: Path(`/campaigns`) || Path(`/campaigns/{id:[0-9]+}`)
middlewares: middlewares:
- name: fw-auth-mw - name: fw-auth-mw
namespace: default namespace: default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment