22 lines
351 B
C#
22 lines
351 B
C#
|
using FastEndpoints;
|
||
|
using Medusa.Core.Extensions;
|
||
|
using Medusa.Core.Request;
|
||
|
|
||
|
var builder = WebApplication.CreateBuilder(args);
|
||
|
|
||
|
builder.Services.AddFastEndpoints();
|
||
|
|
||
|
builder.Services.AddHandlers();
|
||
|
|
||
|
|
||
|
builder.AddServiceDefaults();
|
||
|
|
||
|
// Add services to the container.
|
||
|
|
||
|
var app = builder.Build();
|
||
|
|
||
|
app.UseFastEndpoints();
|
||
|
|
||
|
app.UseHandlers();
|
||
|
|
||
|
app.Run();
|