mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-12 17:34:33 +01:00
24 lines
561 B
C#
24 lines
561 B
C#
using Common;
|
|
using HttpServer.Controllers;
|
|
|
|
namespace HttpServer
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main()
|
|
{
|
|
Thread.CurrentThread.IsBackground = true;
|
|
var builder = WebApplication.CreateBuilder();
|
|
|
|
var app = builder.Build();
|
|
|
|
app.UsePathBase("/");
|
|
app.Urls.Add($"http://*:{Global.config.Http.HttpPort}");
|
|
app.Urls.Add($"https://*:{Global.config.Http.HttpsPort}");
|
|
|
|
DispatchController.AddHandlers(app);
|
|
|
|
app.Run();
|
|
}
|
|
}
|
|
} |