package com.home4j;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
import java.util.Map;

/**
 * API 信息端点
 */
@Path("/api")
public class GreetingResource {

    @GET
    @Path("/info")
    @Produces(MediaType.APPLICATION_JSON)
    public Map<String, Object> info() {
        return Map.of(
            "name", "Home4j",
            "version", "0.1.0",
            "description", "A lightweight home dashboard for developers"
        );
    }
}
