Browse Source

update API Gateway - /locations-api/ @ webmarketing/envoy.yaml

pull/1358/head
hfz-r 4 years ago
parent
commit
a741a6887b
2 changed files with 14 additions and 1 deletions
  1. +13
    -0
      src/ApiGateways/Envoy/config/webmarketing/envoy.yaml
  2. +1
    -1
      src/Web/WebMVC/Services/LocationService.cs

+ 13
- 0
src/ApiGateways/Envoy/config/webmarketing/envoy.yaml View File

@ -36,6 +36,19 @@ static_resources:
route:
auto_host_rewrite: true
cluster: marketing
- name: "l-short"
match:
prefix: "/l/"
route:
auto_host_rewrite: true
prefix_rewrite: "/locations-api/"
cluster: locations
- name: "l-long"
match:
prefix: "/locations-api/"
route:
auto_host_rewrite: true
cluster: locations
http_filters:
- name: envoy.router
access_log:


+ 1
- 1
src/Web/WebMVC/Services/LocationService.cs View File

@ -23,7 +23,7 @@ namespace WebMVC.Services
_settings = settings;
_logger = logger;
_remoteServiceBaseUrl = $"{_settings.Value.MarketingUrl}/api/v1/l/locations/";
_remoteServiceBaseUrl = $"{_settings.Value.MarketingUrl}/l/api/v1/locations/";
}
public async Task CreateOrUpdateUserLocation(LocationDTO location)


Loading…
Cancel
Save