using Application.Endpoints; using Application.Endpoints.SicknessPrediction; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace API.Controllers; [Route("api/[controller]")] public class SicknessPredictionController : BaseApiController { [Authorize(Policy = Policies.DoctorPolicy)] [HttpPost] public async Task> GetPrediction(SicknessPredictionCommand command) { var result = await SicknessPredictionHandler.GetPrediction(command); return StatusCode(result.StatusCode, result); } }