MCPcopy Create free account
hub / github.com/pollinations/pollinations / checkHealth

Function checkHealth

apps/micro/examples/nextjs-example.js:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10// Example 1: Health check
11async 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
25async function sendCustomEmail() {

Callers 1

runExamplesFunction · 0.85

Calls 4

logMethod · 0.80
jsonMethod · 0.80
errorMethod · 0.80
fetchFunction · 0.50

Tested by

no test coverage detected