<?php
require_once __DIR__ . '/../../../app/Models/ProfitLoss.php';
$model = new ProfitLoss();
$data = $model->getProfitLoss($_GET['start'] ?? null, $_GET['end'] ?? null);
header('Content-Type: application/json');
echo json_encode($data);
