Lots of additions and changes
This commit is contained in:
@@ -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 =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user