File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 8
8
on :
9
9
push :
10
10
branches :
11
- - " ** "
11
+ - main
12
12
workflow_dispatch :
13
13
14
14
jobs :
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
- // }
25
+
31
26
app . UseSwagger ( ) ;
32
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 ( ) ;
You can’t perform that action at this time.
0 commit comments