add preliminary llm controller
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s

This commit is contained in:
2026-04-23 20:23:32 -05:00
parent 0bee59efe0
commit bf5885c4ed
3 changed files with 95 additions and 3 deletions

View File

@@ -29,6 +29,8 @@ builder.Services.AddScoped<UserService>();
builder.Services.AddScoped<ItemService>();
builder.Services.AddScoped<JwtService>();
// if this grows sufficiently large we can put elsewhere
// misc services that I didnt make
builder.Services.AddHttpClient();
// configuration for jwt authentication
builder.Services.AddIdentity<User, IdentityRole>()
@@ -110,7 +112,7 @@ if (app.Environment.IsEnvironment("Development")) {
app.UseHttpsRedirection();
}
app.MapControllers();
app.MapControllers(); // automatically scours src/Controllers for controller classes
// attempt enitity-framework migrations at startup. love you stack overflow
using (var scope = app.Services.CreateScope()) {
@@ -125,7 +127,6 @@ using (var scope = app.Services.CreateScope()) {
Thread.Sleep(5000);
}
}
}
app.Run();