17 lines
516 B
C#
17 lines
516 B
C#
using Application.Endpoints;
|
|
using Application.Endpoints.SicknessPrediction;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace API.Controllers;
|
|
|
|
[Route("api/[controller]")]
|
|
public class SicknessPredictionController : BaseApiController
|
|
{
|
|
[HttpPost]
|
|
public async Task<ActionResult<BaseResponse>> GetPrediction(SicknessPredictionDto dto)
|
|
{
|
|
var handler = new SicknessPredictionHandler();
|
|
var result = await handler.GetPrediction(dto);
|
|
return StatusCode(result.StatusCode, result);
|
|
}
|
|
} |