Additions to api, removal of blazor project for now

This commit is contained in:
2021-10-13 15:07:23 -04:00
parent de1f4c9b71
commit 152f196ae1
36 changed files with 20 additions and 1316 deletions

View File

@@ -32,6 +32,7 @@ namespace WebAPI
services.AddControllers();
services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo {Title = "Petrie Panel Web API", Version = "v1"}); });
services.AddDbContext<AppDbContext>(options => options.UseNpgsql(Configuration.GetConnectionString("DefaultConnection")));
services.AddSingleton<PterodactylService>();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.