changeset 5240:1a17b27d0aa9 new-fwa

Merged.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 12 May 2020 15:58:42 +0200
parents 158a26bcb2af (current diff) 2f513505bc88 (diff)
children 5e235be9cf6e
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/store/fairwayavailability.js	Tue May 12 15:58:19 2020 +0200
+++ b/client/src/store/fairwayavailability.js	Tue May 12 15:58:42 2020 +0200
@@ -276,7 +276,7 @@
         }
         const start = encodeURIComponent("00:00:00+00:00");
         const end = encodeURIComponent("23:59:59+00:00");
-        const URL = `data/${endpoint}/fairway/${encodeURIComponent(
+        const URL = `data/fairway/${endpoint}/${encodeURIComponent(
           name
         )}?from=${from}T${start}&to=${to}T${end}&mode=${frequency}&los=${LOS}${additionalParams}`;
         HTTP.get(URL, {
@@ -321,7 +321,7 @@
         } else if (type == TYPES.SECTION || type == TYPES.STRETCH) {
           additionalParams = `&depthbreaks=${depthLimit1},${depthLimit2}&widthbreaks=${widthLimit1},${widthLimit2}`;
         }
-        const URL = `data/${endpoint}/availability/${encodeURIComponent(
+        const URL = `data/availability/${endpoint}/${encodeURIComponent(
           name
         )}?from=${from}T${start}&to=${to}T${end}&mode=${frequency}&los=${LOS}${additionalParams}`;
         HTTP.get(URL, {