Files
SupabaseTest/backend/Program.cs
2026-08-15 11:29:39 +00:00

24 lines
450 B
C#

using Backend.Data;
using Microsoft.EntityFrameworkCore;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDbContext<AppDbContext>(options =>
options.UseNpgsql(builder.Configuration.GetConnectionString("Postgres")));
// MARKER: CORS SERVICES
// MARKER: AUTH SERVICES
builder.Services.AddControllers();
var app = builder.Build();
// MARKER: CORS MIDDLEWARE
// MARKER: AUTH MIDDLEWARE
app.MapControllers();
app.Run();