initial commit

This commit is contained in:
2026-06-04 20:58:26 +07:00
commit c524e239ea
250 changed files with 47282 additions and 0 deletions
@@ -0,0 +1,21 @@
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use App\Models\HealthData;
use Illuminate\Http\Request;
class HealthDataAPIController extends Controller
{
public function getHealthData($userId)
{
$healthData = HealthData::where('users_id', $userId)->first();
if (!$healthData) {
return response()->json(['error' => 'Health data not found'], 404);
}
return response()->json($healthData);
}
}