From ab45cc54e88ef6711ef8b0f9e402baa8580ff1c6 Mon Sep 17 00:00:00 2001
From: RobertBasti <robert.basti@tietoevry.com>
Date: Fri, 13 Sep 2024 14:13:42 +0200
Subject: [PATCH] routing

---
 Src/WitsmlExplorer.Api/Routes.cs                                | 2 +-
 .../services/logCurvePriorityService.tsx                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Src/WitsmlExplorer.Api/Routes.cs b/Src/WitsmlExplorer.Api/Routes.cs
index 7b264897a..69acd7fa3 100644
--- a/Src/WitsmlExplorer.Api/Routes.cs
+++ b/Src/WitsmlExplorer.Api/Routes.cs
@@ -40,7 +40,7 @@ public static void ConfigureApi(this WebApplication app, IConfiguration configur
             app.MapGet("/wells/{wellUid}/wellbores/{wellboreUid}/countexpandable", ObjectHandler.GetExpandableObjectsCount, useOAuth2);
 
             app.MapGet("/wells/{wellUid}/wellbores/{wellboreUid}/logCurvePriority", LogCurvePriorityHandler.GetPrioritizedLocalCurves, useOAuth2);
-            app.MapGet("/universal/getLogCurvePriority", LogCurvePriorityHandler.GetPrioritizedUniversalCurves, useOAuth2);
+            app.MapGet("/universal/logCurvePriority", LogCurvePriorityHandler.GetPrioritizedUniversalCurves, useOAuth2);
             app.MapPost("/universal/logCurvePriority", LogCurvePriorityHandler.SetPrioritizedUniversalCurves, useOAuth2);
             app.MapPost("/wells/{wellUid}/wellbores/{wellboreUid}/logCurvePriority", LogCurvePriorityHandler.SetPrioritizedLocalCurves, useOAuth2);
 
diff --git a/Src/WitsmlExplorer.Frontend/services/logCurvePriorityService.tsx b/Src/WitsmlExplorer.Frontend/services/logCurvePriorityService.tsx
index aadae29e8..b03ef16ca 100644
--- a/Src/WitsmlExplorer.Frontend/services/logCurvePriorityService.tsx
+++ b/Src/WitsmlExplorer.Frontend/services/logCurvePriorityService.tsx
@@ -8,7 +8,7 @@ export default class LogCurvePriorityService {
     abortSignal?: AbortSignal
   ): Promise<string[]> {
     const path = isUniversal
-      ? `/api/universal/getLogCurvePriority`
+      ? `/api/universal/logCurvePriority`
       : `/api/wells/${encodeURIComponent(
           wellUid
         )}/wellbores/${encodeURIComponent(wellboreUid)}/logCurvePriority`;