feat: make PepApi cross-platform for Linux Docker
This commit is contained in:
@@ -6,8 +6,9 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
|
||||
|
||||
// Enable Windows Service hosting
|
||||
builder.Host.UseWindowsService();
|
||||
// Enable Windows Service hosting (only on Windows)
|
||||
if (OperatingSystem.IsWindows())
|
||||
builder.Host.UseWindowsService();
|
||||
|
||||
// Add services to the container
|
||||
builder.Services.AddControllers()
|
||||
|
||||
Reference in New Issue
Block a user