File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 8
8
var builder = WebApplication . CreateBuilder ( args ) ;
9
9
10
10
// Add services to the container.
11
-
12
11
builder . Services . AddSingleton < IStorageProvider < StorageChirpRecord > , ChirpStorageProvider > ( ) ;
13
-
14
- // builder.Services.AddControllers();
15
12
builder . Services . AddControllers ( ) . AddNewtonsoftJson ( ) ;
16
- // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
13
+
14
+ // swagger
17
15
builder . Services . AddEndpointsApiExplorer ( ) ;
18
16
builder . Services . AddSwaggerGen ( ) ;
19
17
24
22
. AllowAnyMethod ( )
25
23
. AllowAnyHeader ( ) ) ;
26
24
27
- // Configure the HTTP request pipeline.
28
- if ( app . Environment . IsDevelopment ( ) )
29
- {
30
- app . UseSwagger ( ) ;
31
- app . UseSwaggerUI ( ) ;
32
- }
25
+
26
+ app . UseSwagger ( ) ;
27
+ app . UseSwaggerUI ( ) ;
33
28
34
29
app . UseHttpsRedirection ( ) ;
35
30
31
+ // Not useful right now
36
32
// app.UseAuthorization();
37
33
38
34
app . MapControllers ( ) ;
Original file line number Diff line number Diff line change 14
14
"dotnetRunMessages" : true ,
15
15
"launchBrowser" : true ,
16
16
"launchUrl" : " swagger" ,
17
- "applicationUrl" : " http ://localhost:5235 " ,
17
+ "applicationUrl" : " https ://bdsagroup3chirpremotedb.azurewebsites.net " ,
18
18
"environmentVariables" : {
19
19
"ASPNETCORE_ENVIRONMENT" : " Development"
20
20
}
24
24
"dotnetRunMessages" : true ,
25
25
"launchBrowser" : true ,
26
26
"launchUrl" : " swagger" ,
27
- "applicationUrl" : " https://localhost:7165;http://localhost:5235 " ,
27
+ "applicationUrl" : " https://bdsagroup3chirpremotedb.azurewebsites.net " ,
28
28
"environmentVariables" : {
29
29
"ASPNETCORE_ENVIRONMENT" : " Development"
30
30
}
You can’t perform that action at this time.
0 commit comments