package com.vibevault.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * API 信息控制器
 */
@RestController
public class HomeController {

    @GetMapping("/api")
    public Map<String, Object> apiInfo() {
        return Map.of(
                "application", "VibeVault API",
                "version", "1.0.0",
                "status", "running",
                "endpoints", Map.of(
                        "auth", "/api/auth",
                        "playlists", "/api/playlists",
                        "h2-console", "/h2-console"
                )
        );
    }
}
