using RpgRoller.Contracts;
using RpgRoller.Services;

namespace RpgRoller.Api;

internal static class SystemEndpoints
{
    public static RouteGroupBuilder MapSystemEndpoints(this RouteGroupBuilder group)
    {
        group.MapGet("/health", () => TypedResults.Ok(new HealthResponse("ok")));
        group.MapGet("/rulesets", (IGameService game) => TypedResults.Ok(game.GetRulesets()));
        return group;
    }
}