File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ using Microsoft.AspNetCore.Http.Headers;
1818using Microsoft .Net .Http .Headers ;
1919
2020using Umbraco .Cms .Core .Configuration .Models ;
21+ using Umbraco .Cms .Core .Hosting ;
2122using IHostingEnvironment = Umbraco .Cms .Core .Hosting .IHostingEnvironment ;
2223
2324namespace Umbraco .Docs .Samples .Web .Tutorials ;
@@ -38,7 +39,7 @@ public class ConfigureStaticFileOptions : IConfigureOptions<StaticFileOptions>
3839 private readonly string _backOfficePath ;
3940
4041 public ConfigureStaticFileOptions (IOptions <GlobalSettings > globalSettings , IHostingEnvironment hostingEnvironment )
41- => _backOfficePath = globalSettings . Value . GetBackOfficePath (hostingEnvironment );
42+ => _backOfficePath = hostingEnvironment . GetBackOfficePath ();
4243
4344 public void Configure (StaticFileOptions options )
4445 => options .OnPrepareResponse = ctx =>
You can’t perform that action at this time.
0 commit comments