Last active
February 29, 2024 07:54
-
-
Save trnktms/05c9f5efac0a913b3c84ad60fcf003d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Startup | |
{ | |
... | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
... | |
// Overwrite the default ApiContentResponseBuilder to resolve partial layouts | |
services.AddSingleton<IApiContentResponseBuilder, ExtendedApiContentResponseBuilder>(); | |
services.AddSingleton<IComponentResolver, HeaderResolver>(); | |
services.AddSingleton<IComponentResolver, FooterResolver>(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment