From b11fd53f2d2ccdd4a5ffad80a3aaab4e9f1013bd Mon Sep 17 00:00:00 2001 From: Vijay Anand E G <81947404+egvijayanand@users.noreply.github.com> Date: Wed, 25 Oct 2023 14:55:44 +0530 Subject: [PATCH] Base URL updated --- src/BlazorApp/BlazorApp.Wasm/Program.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/BlazorApp/BlazorApp.Wasm/Program.cs b/src/BlazorApp/BlazorApp.Wasm/Program.cs index c35230f..85700ad 100644 --- a/src/BlazorApp/BlazorApp.Wasm/Program.cs +++ b/src/BlazorApp/BlazorApp.Wasm/Program.cs @@ -31,7 +31,10 @@ public static async Task Main(string[] args) host.Services.AddHttpClient(Constants.DataStore.GitHub, client => { - client.BaseAddress = new Uri("https://raw.githubusercontent.com/weeklyxamarin/WeeklyXamarin.content/master/content/"); + // GitHub Raw URLs not working + //client.BaseAddress = new Uri("https://raw.githubusercontent.com/weeklyxamarin/WeeklyXamarin.content/master/content/"); + // Since everything is JSON file content, making use of the direct URLs + client.BaseAddress = new Uri("https://github.com/weeklyxamarin/WeeklyXamarin.content/blob/master/content/"); }); await host.Build().RunAsync();