Files
Server/OwnChar.Server/Api/Endpoint/ApiBuilder.cs
Schedel Pascal 82485da5d2 uff, lot of work
2024-08-02 11:47:33 +02:00

18 lines
392 B
C#

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);
}
}