From 9c8879b529252dfcadc561123b473815a618d2d6 Mon Sep 17 00:00:00 2001 From: Taylor Howell Date: Mon, 27 Nov 2023 22:15:18 -0600 Subject: [PATCH] fixing connection string issue --- ValkyrieServerController.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ValkyrieServerController.cs b/ValkyrieServerController.cs index 7eba034..2895bc3 100644 --- a/ValkyrieServerController.cs +++ b/ValkyrieServerController.cs @@ -15,6 +15,7 @@ public class ValkyrieServerController public static readonly Uri prodGetDataURI = new Uri("https://valkyrie-nu.vercel.app/api/v1/getdata/", UriKind.Absolute); public static readonly Uri testGetDataURI = new Uri("http://localhost:3000/api/v1/getdata/", UriKind.Absolute); + public static readonly Uri prodSyncFunctionsURITestBranch = new Uri("https://valkyrie-git-get-functions-from-server-earliestfall988.vercel.app/api/v1/sync-functions", UriKind.Absolute); public static readonly Uri testSyncFunctionsURI = new Uri("http://localhost:3000/api/v1/sync-functions", UriKind.Absolute); public static readonly Uri testAPIURIThatICameBackFromThanksgivingAndCantRememberWhatItIsFor = new Uri("http://localhost:3000/api/sm/guess", UriKind.Absolute); @@ -26,7 +27,7 @@ public class ValkyrieServerController public ValkyrieServerController() { - + } /// @@ -96,15 +97,15 @@ public ValkyrieServerController() var functionJSON = DiscoverFunctionsHandler.GetFunctionDefinitionsJSON(); - Debug.WriteLine(functionJSON); - + Debug.WriteLine(functionJSON); + using HttpClient client = new(); HttpContent content = new StringContent(functionJSON); client.DefaultRequestHeaders.Add("x-api-key", ValkyrieAPIKey); client.DefaultRequestHeaders.Add("x-instruction-id", instructionId); - var response = await client.PostAsync(testSyncFunctionsURI, content); + var response = await client.PostAsync(prodSyncFunctionsURITestBranch, content); using StreamReader reader = new StreamReader(response.Content.ReadAsStream());