source: iknow-api/Program.cs@ 43459e1

Last change on this file since 43459e1 was 43459e1, checked in by GitHub <noreply@…>, 11 months ago

Revert "Feature/refresh token"

  • Property mode set to 100644
File size: 445 bytes
RevLine 
[c11d3a3]1var builder = WebApplication.CreateBuilder(args);
[43459e1]2
[c11d3a3]3// Add services to the container.
[43459e1]4
[c11d3a3]5builder.Services.AddControllers();
[43459e1]6// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
[c11d3a3]7builder.Services.AddOpenApi();
8
9var app = builder.Build();
10
11// Configure the HTTP request pipeline.
12if (app.Environment.IsDevelopment())
13{
14 app.MapOpenApi();
15}
16
17app.UseHttpsRedirection();
[43459e1]18
[c11d3a3]19app.UseAuthorization();
[43459e1]20
[c11d3a3]21app.MapControllers();
22
23app.Run();
Note: See TracBrowser for help on using the repository browser.