Skip to content

Commit f5eeefe

Browse files
committed
Route ledger API through gateway
1 parent e15a721 commit f5eeefe

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main/resources/application.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ spring:
2222
- Path=/api/v1/notification/**
2323
filters:
2424
- AddRequestHeader=X-Request-Source, Gateway
25+
- id: ledger-service-route
26+
uri: http://${sm://LEDGER_HOST}:8080
27+
predicates:
28+
- Path=/api/v1/ledger-entry/**
29+
filters:
30+
- StripPrefix=2
31+
- AddRequestHeader=X-Request-Source, Gateway
2532
- id: backend-api-route
2633
uri: http://${sm://BACKEND_HOST}:8080
2734
predicates:

0 commit comments

Comments
 (0)