Fixed Server folder name

This commit is contained in:
2025-06-05 05:52:36 +00:00
parent b93b14f051
commit 183a150234
10 changed files with 0 additions and 0 deletions

31
src/Server/Program.cs Normal file
View File

@@ -0,0 +1,31 @@
using server;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddSingleton<SearchdomainManager>();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
else
{
app.UseMiddleware<ApiKeyMiddleware>();
}
app.UseAuthorization();
app.MapControllers();
app.Run();