Add news post type with list and detail routes
This commit is contained in:
1 parent
bed2db5972
commit
908a03a1f6
10 files changed
+295
-31
No files matched your search
@@ -7,8 +7,9 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
// Add services to the container.
|
||||
builder.Services.AddRazorComponents();
|
||||
|
||||
// Content is read once at startup and cached -> singleton.
|
||||
// Content is read once at startup and cached -> singletons.
|
||||
builder.Services.AddSingleton<PageService>();
|
||||
builder.Services.AddSingleton<PostService>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
|
||||
Reference in new issue
Block a user