using Server.HTML;
using Server.System;
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
//À¥¼¹ö ÃʱâÈ
ProtocolProcessor.Init();
//±ê À¥ÈÅ ÃʱâÈ
GItWebhook.Init();
//http¿ë µ¥ÀÌÅÍ
app.MapPost("/", ProtocolProcessor.Process);
//git Á¢±Ù¿ë À¥ÈÅ
app.MapPost("/git", GItWebhook.Process);
//app.MapPost("/update", GItWebhook.Process);
#if DEBUG
app.MapGet("/spin", Spin.Main);
app.MapPost("/spin/random", Spin.Random);
#endif
app.Run(Statics.URL);
//¼¹ö Å×À̺í°ú Ŭ¶óÀÌ¾ðÆ® Å×À̺íÀ» ã¾Æ µû·ÎµÎ°í
//¼¹ö ¾÷µ¥ÀÌÆ®½Ã db¿¡¼ Çѹø´õ ¹Þ¾Æ¿À´Â°ÍÀÌ ¾Æ´Ñ ¹ÞÀº°ªÀ» ¼¹ö¿¡ ¹Ù·Î ¼¼ÆÃÇÏ´Â ¹æ½ÄÀ¸·Î º¯°æ