Skip to content

Commit

Permalink
fixing uris **sigh**
Browse files Browse the repository at this point in the history
  • Loading branch information
EarliestFall988 committed Dec 9, 2023
1 parent c2ea759 commit e5a854a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
app.MapGet("/api/v1/sync", async (HttpContext ctx) =>
{

Debug.WriteLine("test 0");

string instructionId = ctx.Request.Headers["id"];
string key = ctx.Request.Headers["apikey"];

Expand Down
10 changes: 10 additions & 0 deletions Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@
"launchUrl": "{Scheme}://{ServiceHost}:{ServicePort}/swagger",
"publishAllPorts": true,
"useSSL": true
},
"WSL": {
"commandName": "WSL2",
"launchBrowser": true,
"launchUrl": "https://localhost:7190/swagger",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:7190;http://localhost:5195"
},
"distributionName": ""
}
},
"$schema": "https://json.schemastore.org/launchsettings.json",
Expand Down
4 changes: 2 additions & 2 deletions ValkyrieServerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class ValkyrieServerController
/// <summary>
/// the base URI for the Valkyrie server
/// </summary>
private Uri selectedURI = testGetDataURI;
private Uri selectedURI = prodGetDataURI;

public ValkyrieServerController()
{
Expand Down Expand Up @@ -105,7 +105,7 @@ public ValkyrieServerController()

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());

Expand Down

0 comments on commit e5a854a

Please sign in to comment.