Skip to content

Commit 0a4ba22

Browse files
Merge pull request #84 from walters-labs/migrate-towards-REST-style-API
`/health` should hit `/../health.php`
2 parents a6f6424 + e154320 commit 0a4ba22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/v1/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
echo json_encode(['error' => 'Not Found']);
2828
}
2929
} elseif ($method === 'GET' && $path === '/health') {
30-
echo json_encode(['status' => 'ok']);
30+
include __DIR__ . '/../health.php'; // <-- include the real health check script here
3131
} else {
3232
http_response_code(405);
3333
echo json_encode(['error' => 'Method Not Allowed']);

0 commit comments

Comments
 (0)