source: iknow-api/Program.cs@ c11d3a3

Last change on this file since c11d3a3 was c11d3a3, checked in by stefansaveski <stefansaveski19@…>, 11 months ago

Add project files.

  • Property mode set to 100644
File size: 445 bytes
Line 
1var builder = WebApplication.CreateBuilder(args);
2
3// Add services to the container.
4
5builder.Services.AddControllers();
6// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
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();
18
19app.UseAuthorization();
20
21app.MapControllers();
22
23app.Run();
Note: See TracBrowser for help on using the repository browser.