JOBot/JOBot.Backend/Program.cs
2025-05-01 00:33:12 +03:00

16 lines
397 B
C#

using JOBot.Backend.DAL.Context;
using JOBot.Backend.Services.gRPC;
using Microsoft.EntityFrameworkCore;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddGrpc();
builder.Services.AddDbContext<AppDbContext>(options =>
options.UseNpgsql(builder.Configuration.GetConnectionString("PostgreSQL")));
var app = builder.Build();
app.MapGrpcService<UserService>();
app.Run();