Update to .Net 8.0
This commit is contained in:
@@ -4,9 +4,8 @@ using GiecChallenge.Services;
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Cors;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using System.Net;
|
||||
using GiecChallenge.Profiles;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
ConfigurationManager configuration = builder.Configuration;
|
||||
@@ -32,7 +31,15 @@ builder.Services.AddSwaggerGen(c =>
|
||||
c.ResolveConflictingActions(apiDescriptions => apiDescriptions.First());
|
||||
});
|
||||
|
||||
builder.Services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
|
||||
builder.Services.AddAutoMapper(
|
||||
typeof(CurrencyProfile),
|
||||
typeof(GroupProfile),
|
||||
typeof(LanguageProfile),
|
||||
typeof(ProductProfile),
|
||||
typeof(PurchaseProfile),
|
||||
typeof(SubGroupProfile),
|
||||
typeof(UserProfile)
|
||||
);
|
||||
|
||||
builder.Services.AddAuthentication(options =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user