using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Authorization;

namespace FilterCair.Server.Controllers
{
    [ApiController]
    [Route("api/[controller]")]
    public class TestController : ControllerBase
    {
        [HttpGet("public")]
        public IActionResult GetPublic() => Ok("✅ Öffentlich erreichbar – keine Auth nötig");

        [Authorize]
        [HttpGet("protected")]
        public IActionResult GetProtected() => Ok("🔒 Du bist authentifiziert über Azure AD!");
    }
}