Files
plant-man/plant-manager/Endpoints/RootEndpoints.cs
T
2026-05-17 23:56:50 +00:00

27 lines
758 B
C#

namespace plant_manager.Endpoints
{
public static class RootEndpoints
{
public static void MapRootEndpoints(this WebApplication app)
{
app.MapGet("/", () => Results.Ok(new
{
name = "Plant-Man API",
status = "ok",
endpoints = new[]
{
"/api/health",
"/api/plants",
"/api/plant-taxa",
"/api/care-actions",
"/api/action-resources",
"/api/care-tasks/today",
"/api/action-logs"
}
}));
app.MapGet("/api/health", () => Results.Ok(new { status = "ok" }));
}
}
}