add preliminary llm controller
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 8s
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user