changeset 5238:2f513505bc88 new-fwa

changed route for availability
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 12 May 2020 15:58:01 +0200
parents 6ba7e6ac0882
children 1a17b27d0aa9
files client/src/store/fairwayavailability.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/store/fairwayavailability.js	Tue May 12 15:52:10 2020 +0200
+++ b/client/src/store/fairwayavailability.js	Tue May 12 15:58:01 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, {