<?php
$content = file_get_contents('C:/laragon/www/sawdabazar-frontend/src/app/products/[slug]/page.tsx');
if ($content === false) {
    echo "Failed to load file\n";
    exit;
}
$lines = explode("\n", $content);
foreach ($lines as $num => $line) {
    if (str_contains($line, 'api.get') || str_contains($line, 'api.post')) {
        echo "Line " . ($num + 1) . ": " . trim($line) . "\n";
    }
}
