checkpoint
This commit is contained in:
@@ -5,7 +5,6 @@ using Svrnty.CQRS.Grpc;
|
||||
using Svrnty.Sample;
|
||||
using Svrnty.CQRS.MinimalApi;
|
||||
using Svrnty.CQRS.DynamicQuery;
|
||||
using Svrnty.CQRS.DynamicQuery.MinimalApi;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
@@ -39,7 +38,9 @@ builder.Services.AddSvrntyCqrs(cqrs =>
|
||||
});
|
||||
|
||||
// Enable MinimalApi endpoints
|
||||
cqrs.AddMinimalApi();
|
||||
cqrs.AddMinimalApi(configure =>
|
||||
{
|
||||
});
|
||||
});
|
||||
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
@@ -47,12 +48,9 @@ builder.Services.AddSwaggerGen();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Map all configured CQRS endpoints (gRPC and MinimalApi)
|
||||
// Map all configured CQRS endpoints (gRPC, MinimalApi, and Dynamic Queries)
|
||||
app.UseSvrntyCqrs();
|
||||
|
||||
// Map dynamic queries manually for now
|
||||
app.MapSvrntyDynamicQueries();
|
||||
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user