Use default files

This commit is contained in:
Hadeed 2024-10-07 12:50:27 +05:00
parent 13de8d8b87
commit 4916540200

View file

@ -10,6 +10,7 @@ if (Environment.GetEnvironmentVariable("API_TOKEN") is null)
throw new InvalidOperationException("API_TOKEN is not set"); throw new InvalidOperationException("API_TOKEN is not set");
app.UseStatusCodePages(); app.UseStatusCodePages();
app.UseDefaultFiles();
app.UseStaticFiles(new StaticFileOptions { app.UseStaticFiles(new StaticFileOptions {
ServeUnknownFileTypes = true, ServeUnknownFileTypes = true,
DefaultContentType = "text/plain" DefaultContentType = "text/plain"