We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 964ba7d + 5e77832 commit 960106eCopy full SHA for 960106e
server/Program.cs
@@ -26,14 +26,13 @@ public static void Main(string[] args)
26
options.AddPolicy("AllowSpecificOrigin", b => b.WithOrigins("https://andrewtest.org").AllowAnyHeader().AllowAnyMethod());
27
});
28
29
- // Add services to the container.
30
- // builder.Services.AddSwaggerGen();
+ // --------------------- SWAGGER ----------------------------------
31
builder.Services.AddSwaggerGen(c =>
32
{
33
c.SwaggerDoc("v1", new OpenApiInfo { Title = "DevBlog", Version = "v1" });
34
35
36
- // builder.Services.AddControllersWithViews();
+ builder.Services.AddControllersWithViews();
37
38
// ----------------------- DATABASES -------------------------------
39
builder.Services.AddDbContext<AppDbContext>(options =>
0 commit comments