File tree 4 files changed +2
-20
lines changed
4 files changed +2
-20
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 54
54
EnvironmentHelper . RegionPath = Path . GetFullPath ( builder . Configuration . GetValue < string > ( "FilePath:RegionPath" ) ) ;
55
55
EnvironmentHelper . DistrictPath = Path . GetFullPath ( builder . Configuration . GetValue < string > ( "FilePath:DistrictPath" ) ) ;
56
56
// Configure the HTTP request pipeline.
57
- if ( app . Environment . IsDevelopment ( ) )
57
+ if ( app . Environment . IsDevelopment ( ) || app . Environment . IsProduction ( ) )
58
58
{
59
59
app . UseSwagger ( ) ;
60
60
app . UseSwaggerUI ( ) ;
Original file line number Diff line number Diff line change 25
25
var app = builder . Build ( ) ;
26
26
27
27
// Configure the HTTP request pipeline.
28
- if ( app . Environment . IsDevelopment ( ) )
29
- {
30
- app . UseSwagger ( ) ;
31
- app . UseSwaggerUI ( ) ;
32
- }
33
28
34
29
app . UseHttpsRedirection ( ) ;
35
30
Original file line number Diff line number Diff line change 38
38
},
39
39
"AllowedHosts" : " *" ,
40
40
"ConnectionStrings" : {
41
- "DefaultConnection" : " Host=localhost; User Id=postgres; Password=admin ; Database=FleetFlowDb;" ,
41
+ "DefaultConnection" : " Host=localhost; User Id=postgres; Password=root ; Database=FleetFlowDb;" ,
42
42
"SqlConnection" : " Server=(localdb)\\ MSSQLLocalDB, Database=FletFlow;Trusted_Connection=true"
43
43
},
44
44
"Email" : {
You can’t perform that action at this time.
0 commit comments