using OwnChar.Api.Packets; namespace OwnChar.Server.Api.Endpoint; internal class ApiBuilder(WebApplication app) : IApiBuilder { public void MapRequest(string pattern, Delegate action) { Map(pattern + "/{request}", action); } public void Map(string pattern, Delegate action) { //app.Map(pattern, action); app.MapPost(pattern, action); } }