enable swagger
parent
bba8be7b54
commit
c1e5a751db
|
@ -16,7 +16,7 @@
|
|||
"TaxesFee": 9
|
||||
},
|
||||
"SiteSettings": {
|
||||
"BaseUrl": "http://192.168.88.12:32770",
|
||||
"BaseUrl": "http://localhost:32770",
|
||||
"KaveNegarApiKey": "3735494B4143727A794346457461576A2B4B6668414973424E333561505A694B",
|
||||
"UserSetting": {
|
||||
"Username": "netinashop",
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue