Skip to content

Commit

Permalink
feat: add admin to api gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Sep 8, 2024
1 parent f4af14a commit 8ed0bcc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api-gateway/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ spring:
- Path=/user/v1/auth/**
filters:
- RewritePath=/user/(?<segment>/?.*), /$\{segment}
- id: user-service-admin
uri: http://user-service
predicates:
- AdminAuthenticationFilter
- Path=/user/v1/admin/**
filters:
- RewritePath=/user/(?<segment>/?.*), /$\{segment}
- id: photo-service-swagger
uri: http://photo-service
predicates:
Expand Down

0 comments on commit 8ed0bcc

Please sign in to comment.