Skip to content

Commit a23a70e

Browse files
committed
working!
1 parent 89002d0 commit a23a70e

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/main_bdsagroup3chirpremotedb.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ env:
88
on:
99
push:
1010
branches:
11-
- "**"
11+
- main
1212
workflow_dispatch:
1313

1414
jobs:

src/Chirp.SimpleDB/Program.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
var builder = WebApplication.CreateBuilder(args);
99

1010
// Add services to the container.
11-
1211
builder.Services.AddSingleton<IStorageProvider<StorageChirpRecord>, ChirpStorageProvider>();
13-
14-
// builder.Services.AddControllers();
1512
builder.Services.AddControllers().AddNewtonsoftJson();
16-
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
13+
14+
// swagger
1715
builder.Services.AddEndpointsApiExplorer();
1816
builder.Services.AddSwaggerGen();
1917

@@ -24,15 +22,13 @@
2422
.AllowAnyMethod()
2523
.AllowAnyHeader());
2624

27-
// Configure the HTTP request pipeline.
28-
// if (app.Environment.IsDevelopment())
29-
// {
30-
// }
25+
3126
app.UseSwagger();
3227
app.UseSwaggerUI();
3328

3429
app.UseHttpsRedirection();
3530

31+
// Not useful right now
3632
// app.UseAuthorization();
3733

3834
app.MapControllers();

0 commit comments

Comments
 (0)