personal-finances/pefi-api-gateway/src/main/resources/application-development.yml

33 lines
874 B
YAML
Raw Normal View History

spring:
cloud:
gateway:
routes:
2024-02-05 21:09:59 +02:00
- id: statements-api
uri: ${STATEMENTS_API_URI}
order: 1
predicates:
2024-02-05 21:09:59 +02:00
- Path=/api/statements/**
filters:
- RewritePath=/api/(?<segment>.*), /$\{segment}
- TokenRelay=
2024-02-05 21:09:59 +02:00
- id: widgets-api
uri: ${WIDGETS_API_URI}
order: 2
predicates:
2024-02-05 21:09:59 +02:00
- Path=/api/widgets/**
filters:
- RewritePath=/api/(?<segment>.*), /$\{segment}
- TokenRelay=
2024-02-05 21:09:59 +02:00
- id: core-api
uri: ${CORE_API_URI}
order: 3
predicates:
2024-02-05 21:09:59 +02:00
- Path=/api/**
filters:
- RewritePath=/api/(?<segment>.*), /$\{segment}
- TokenRelay=
- id: spa
order: 4
uri: ${FRONTEND_URI}
predicates:
- Path=/**