I'm not sure that you'd want to do this. From my understanding, the health check is more to determine that the server is is serving up your app correctly, not that your app itself is fully functioning. That should be handled by your test suite
Envoyer.io - How could I health check all routes?
I'm massively enjoying my experience of Envoyer so far. $10 I will happily pay for the foreseeable future.
For myself, the Health Check URL feature (Combined with Slack notifications) is just tremendous. However, specifying a link to my home page isn't exactly maximising it's potential.
I'm keen to pick people's brains about how I could go about providing a Health Check URL to Envoyer, which leads to a Test Page which checks the status of all routes (even those that have Auth Middleware attached).
My first thought was to use a foreach loop combined with the get_headers function to check the status of all routes. Then throw a 404 from the Test Page if any of the routes themselves generate a 404.
Please or to participate in this conversation.