SignificaUtils.HealthController (significa_utils v0.0.1-main-a68c9941c5d644aa896c6919c6ccfc2aa420ea48)

View Source

Internal controller to be used by SignificaUtils.HealthRouter.

Summary

Functions

Route handler that returns the version of the latest ecto migration (table schema_migrations). Uses the repo specified when using SignificaUtils.HealthRouter.

Route handler that always returns "OK"

Route handler that returns the value of the Application env :app_version for the otp_app specified when using SignificaUtils.HealthRouter.

Functions

db_health(conn, params)

Route handler that returns the version of the latest ecto migration (table schema_migrations). Uses the repo specified when using SignificaUtils.HealthRouter.

index(conn, params)

Route handler that always returns "OK"

version(conn, params)

Route handler that returns the value of the Application env :app_version for the otp_app specified when using SignificaUtils.HealthRouter.