Lots of additions and changes

This commit is contained in:
2021-10-30 11:20:36 -04:00
parent 3051b63e44
commit 9cf11e982f
29 changed files with 557 additions and 46 deletions

View File

@@ -14,6 +14,7 @@ using Microsoft.Extensions.Logging;
using Microsoft.OpenApi.Models;
using TOOHUCardAPI.Data;
using TOOHUCardAPI.Data.Repositories;
using TOOHUCardAPI.Data.Services;
namespace TOOHUCardAPI
{
@@ -22,6 +23,7 @@ namespace TOOHUCardAPI
public Startup(IConfiguration configuration)
{
Configuration = configuration;
AppSettings.Init(configuration);
}
public IConfiguration Configuration { get; }
@@ -35,6 +37,7 @@ namespace TOOHUCardAPI
opt.UseSqlite(Configuration.GetConnectionString("Sqlite"));
});
services.AddScoped<UserRepository>();
services.AddScoped<StoreService>();
services.AddAutoMapper(typeof(AutomapProfile));
services.AddSwaggerGen(c =>
{