ismartcoding / plain-app

PlainApp is an open-source application that allows you to manage your phone through a web browser. Access files, videos, music, contacts, sms, calls, and more from your desktop using a secure, easy to use web interface!

Home Page:https://docs.plain.icu

Repository from Github https://github.comismartcoding/plain-appRepository from Github https://github.comismartcoding/plain-app

Add a health check endpoint

anoop-b opened this issue · comments

Is your feature request related to a problem? Please describe.
Exposing a route like/healthz can help with monitoring services

Describe the solution you'd like
a /healthz endpoint that returns 200 OK

Check this URL: http(s)://{ip}:{port}/health_check

Thank you, this helps.

Although i would prefer returning just "OK" or something similar, instead of the com.ismartcoding.plain . It's an avoidable attack vector, what do you think?

The ID com.ismartcoding.plain is simply an application identifier used to differentiate between the debug version and the production version of the app for the HTTP server process. It has no relation to any form of attack.