Ignore:
Timestamp:
06/24/26 16:28:50 (11 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Children:
a8f4a2d
Parents:
0b502c2
Message:

Fixed writer section and admin management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.API/Program.cs

    r0b502c2 r99c1e45  
    7777var app = builder.Build();
    7878
    79 app.UseCors("Frontend");
    80 
    81 if (app.Environment.IsDevelopment())
    82 {
    83     app.UseSwagger();
    84     app.UseSwaggerUI();
    85 }
    86 
    8779app.UseExceptionHandler(err => err.Run(async ctx =>
    8880{
     
    130122}));
    131123
     124app.UseCors("Frontend");
     125
     126if (app.Environment.IsDevelopment())
     127{
     128    app.UseSwagger();
     129    app.UseSwaggerUI();
     130}
     131
    132132app.UseAuthentication();
    133133app.UseAuthorization();
Note: See TracChangeset for help on using the changeset viewer.