|
@@ -150,7 +150,10 @@ internal static class StartupExtensions
|
|
|
//c.SwaggerEndpoint("/swagger/v1/swagger.json", "My API V1");
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
+ app.UseStaticFiles(new StaticFileOptions
|
|
|
+ {
|
|
|
+ FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), @"Template"))
|
|
|
+ });
|
|
|
app.UseCors(CorsOrigins);
|
|
|
|
|
|
app.UseAuthentication();
|
|
@@ -161,11 +164,7 @@ internal static class StartupExtensions
|
|
|
app.MapControllers()
|
|
|
.RequireAuthorization();
|
|
|
//app.MapSubscribeHandler();
|
|
|
- app.UseStaticFiles(new StaticFileOptions
|
|
|
- {
|
|
|
- FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), "Template")),
|
|
|
- RequestPath = new PathString("/Template")
|
|
|
- });
|
|
|
+
|
|
|
return app;
|
|
|
}
|
|
|
}
|