summaryrefslogtreecommitdiffstats
path: root/src/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Program.cs')
-rw-r--r--src/Program.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Program.cs b/src/Program.cs
new file mode 100644
index 0000000..1716be9
--- /dev/null
+++ b/src/Program.cs
@@ -0,0 +1,20 @@
+global using I2R.LightNews.Services;
+global using I2R.LightNews.Models;
+global using IOL.Helpers;
+using System.Globalization;
+
+var builder = WebApplication.CreateBuilder(args);
+
+builder.Services.AddHttpClient();
+builder.Services.AddScoped<GrabberService>();
+builder.Services.AddRazorPages();
+
+var app = builder.Build();
+
+CultureInfo.CurrentCulture = new CultureInfo("nb-no");
+CultureInfo.CurrentUICulture = new CultureInfo("nb-no");
+app.UseStaticFiles();
+app.UseStatusCodePages();
+app.UseRouting();
+app.MapRazorPages();
+app.Run(); \ No newline at end of file