Skip to content

Commit 15f9332

Browse files
authored
Merge pull request #77 from clowder-framework/healtz-endpoint
healthz endpoint
2 parents 36bb9de + a5b90b2 commit 15f9332

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## Unreleased
88

9+
### Added
10+
- added healtz endpoint that is cheap and quick to return, useful for kubernetes live/ready checks.
11+
912
### Fixed
1013
- proxy will no correctly handle paths that end with a / at the end.
1114

app/controllers/Application.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ class Application @Inject() (files: FileService, collections: CollectionService,
263263
Ok("")
264264
}
265265

266+
def healthz() = Action { implicit request =>
267+
Ok("healthy")
268+
}
269+
266270
/**
267271
* Bookmarklet
268272
*/

conf/routes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ GET /
2424
GET /about @controllers.Application.about
2525
GET /tos @controllers.Application.tos(redirect: Option[String] ?= None)
2626
GET /email @controllers.Application.email(subject: String ?= "", body: String ?= "")
27+
GET /healthz @controllers.Application.healthz()
2728

2829
# ----------------------------------------------------------------------
2930
# Map static resources from the /public folder to the /assets URL path

0 commit comments

Comments
 (0)