|
|
@@ -17,8 +17,6 @@ public class Program {
|
|
|
builder.Configuration
|
|
|
);
|
|
|
|
|
|
- builder.Configuration.AddJsonFile("appsettings.json", true, false);
|
|
|
-
|
|
|
var yamlDir = builder.Configuration.GetValue<string>("RPK_YAML_DIR") ?? "./config";
|
|
|
var yamlFileName = "config.yaml";
|
|
|
|
|
|
@@ -85,10 +83,10 @@ public class Program {
|
|
|
app.UseHsts();
|
|
|
}
|
|
|
|
|
|
- app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
|
|
|
-
|
|
|
app.UseHttpsRedirection();
|
|
|
app.UseStaticFiles();
|
|
|
+ app.UseRouting();
|
|
|
+ app.UseStatusCodePagesWithReExecute("/not-found", createScopeForStatusCodePages: true);
|
|
|
app.UseAntiforgery();
|
|
|
|
|
|
app.MapInventoryApi();
|