From 49165402005363300a9be6759ea89aa2b36d7a43 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Mon, 7 Oct 2024 12:50:27 +0500 Subject: [PATCH] Use default files --- Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Program.cs b/Program.cs index 202f3e0..f6d2881 100644 --- a/Program.cs +++ b/Program.cs @@ -10,6 +10,7 @@ if (Environment.GetEnvironmentVariable("API_TOKEN") is null) throw new InvalidOperationException("API_TOKEN is not set"); app.UseStatusCodePages(); +app.UseDefaultFiles(); app.UseStaticFiles(new StaticFileOptions { ServeUnknownFileTypes = true, DefaultContentType = "text/plain"