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
|
// Enable Windows Service hosting (only on Windows)
|
||||||
builder.Host.UseWindowsService();
|
if (OperatingSystem.IsWindows())
|
||||||
|
builder.Host.UseWindowsService();
|
||||||
|
|
||||||
// Add services to the container
|
// Add services to the container
|
||||||
builder.Services.AddControllers()
|
builder.Services.AddControllers()
|
||||||
|
|||||||
Reference in New Issue
Block a user