KafkaSR/RPG.Services.SDK/Program.cs
2024-01-30 02:49:21 +03:00

25 lines
824 B
C#

using RPG.Services.SDK.Handlers;
namespace RPG.Services.SDK;
internal static class Program
{
private static async Task Main(string[] args)
{
Console.Title = "KafkaSR | SDK";
WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseUrls("http://*:8888");
WebApplication app = builder.Build();
app.MapGet("/query_dispatch", DispatchHandler.OnQueryDispatch);
app.MapGet("/query_gateway", DispatchHandler.OnQueryGateway);
app.MapPost("/account/risky/api/check", AuthHandler.OnRiskyApiCheck);
app.MapPost("/{productName}/mdk/shield/api/login", AuthHandler.LoginWithPassword);
app.MapPost("/{productName}/combo/granter/login/v2/login", AuthHandler.OnGranterVerification);
await app.RunAsync();
}
}