File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,13 @@ public static void Main(string[] args)
26
26
options . AddPolicy ( "AllowSpecificOrigin" , b => b . WithOrigins ( "https://andrewtest.org" ) . AllowAnyHeader ( ) . AllowAnyMethod ( ) ) ;
27
27
} ) ;
28
28
29
- // Add services to the container.
30
- // builder.Services.AddSwaggerGen();
29
+ // --------------------- SWAGGER ----------------------------------
31
30
builder . Services . AddSwaggerGen ( c =>
32
31
{
33
32
c . SwaggerDoc ( "v1" , new OpenApiInfo { Title = "DevBlog" , Version = "v1" } ) ;
34
33
} ) ;
35
34
36
- // builder.Services.AddControllersWithViews();
35
+ builder . Services . AddControllersWithViews ( ) ;
37
36
38
37
// ----------------------- DATABASES -------------------------------
39
38
builder . Services . AddDbContext < AppDbContext > ( options =>
You can’t perform that action at this time.
0 commit comments