()
| 9 | |
| 10 | // Example 1: Health check |
| 11 | async function checkHealth() { |
| 12 | try { |
| 13 | console.log('🔍 Checking service health...'); |
| 14 | |
| 15 | const response = await fetch(`${API_BASE_URL}/health`); |
| 16 | const data = await response.json(); |
| 17 | |
| 18 | console.log('✅ Health check result:', data); |
| 19 | } catch (error) { |
| 20 | console.error('❌ Health check failed:', error.message); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // Example 2: Send custom email |
| 25 | async function sendCustomEmail() { |
no test coverage detected