Skip to content

Commit

Permalink
update build overrides url
Browse files Browse the repository at this point in the history
  • Loading branch information
quinchs committed Apr 5, 2022
1 parent 53ab9f3 commit d3a532f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions experiment/Discord.Net.BuildOverrides/BuildOverrides.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static async Task<Override> GetOverrideAsync(string name)
{
using (var client = new HttpClient())
{
var result = await client.GetAsync($"{ApiUrl}/override/{name}");
var result = await client.GetAsync($"{ApiUrl}/overrides/{name}");

if (result.IsSuccessStatusCode)
{
Expand Down Expand Up @@ -184,7 +184,7 @@ public static async Task<bool> AddOverrideAsync(Override ovrride)

using (var client = new HttpClient())
{
var result = await client.GetAsync($"{ApiUrl}/override/download/{ovrride.Id}");
var result = await client.GetAsync($"{ApiUrl}/overrides/download/{ovrride.Id}");

if (!result.IsSuccessStatusCode)
return false;
Expand Down Expand Up @@ -260,7 +260,7 @@ private static async Task<Assembly> GetDependencyAsync(Guid id, string name)
{
using(var client = new HttpClient())
{
var result = await client.PostAsync($"{ApiUrl}/override/{id}/dependency", new StringContent($"{{ \"info\": \"{name}\"}}", Encoding.UTF8, "application/json"));
var result = await client.PostAsync($"{ApiUrl}/overrides/{id}/dependency", new StringContent($"{{ \"info\": \"{name}\"}}", Encoding.UTF8, "application/json"));

if (!result.IsSuccessStatusCode)
throw new Exception("Failed to get dependency");
Expand Down

0 comments on commit d3a532f

Please sign in to comment.