Changeset 99c1e45 for ChapterX.API/Program.cs
- Timestamp:
- 06/24/26 16:28:50 (11 days ago)
- Branches:
- main
- Children:
- a8f4a2d
- Parents:
- 0b502c2
- File:
-
- 1 edited
-
ChapterX.API/Program.cs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.API/Program.cs
r0b502c2 r99c1e45 77 77 var app = builder.Build(); 78 78 79 app.UseCors("Frontend");80 81 if (app.Environment.IsDevelopment())82 {83 app.UseSwagger();84 app.UseSwaggerUI();85 }86 87 79 app.UseExceptionHandler(err => err.Run(async ctx => 88 80 { … … 130 122 })); 131 123 124 app.UseCors("Frontend"); 125 126 if (app.Environment.IsDevelopment()) 127 { 128 app.UseSwagger(); 129 app.UseSwaggerUI(); 130 } 131 132 132 app.UseAuthentication(); 133 133 app.UseAuthorization();
Note:
See TracChangeset
for help on using the changeset viewer.
