enable swagger

release
Amir Hossein Khademi 2024-01-15 12:11:37 +03:30
parent bba8be7b54
commit c1e5a751db
3 changed files with 3 additions and 4 deletions

View File

@ -1 +1 @@
0.0.0.2
0.0.0.3

View File

@ -16,7 +16,7 @@
"TaxesFee": 9
},
"SiteSettings": {
"BaseUrl": "http://192.168.88.12:32770",
"BaseUrl": "http://localhost:32770",
"KaveNegarApiKey": "3735494B4143727A794346457461576A2B4B6668414973424E333561505A694B",
"UserSetting": {
"Username": "netinashop",

View File

@ -84,13 +84,12 @@ var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseCustomSwagger(siteSetting.BaseUrl);
//app.UseSwagger();
//app.UseSwaggerUI();
}
app.UseCors("CorsPolicy");
//app.UseCustomSwagger(siteSetting.BaseUrl);
app.UseCustomSwagger(siteSetting.BaseUrl);
app.UseAuthorization();
app.UseAuthentication();