new init api and start auth

This commit is contained in:
Riccardo Usardi committed 2025-07-06 21:37:41 +02:00
1 parent 7941a858fd
commit a172f05269
26 files changed
+640 -102

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
namespace uWine.Api
{
public class Program
{
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseAuthorization();
app.MapControllers();
app.Run();
}
}
}