Skip to content

Commit

Permalink
Merge pull request #356 from subutai-io/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
emli authored May 4, 2018
2 parents d4b3564 + 752fc24 commit e2eb2ec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ func main() {
http.HandleFunc("/kurjun/rest/auth/register", auth.Register)
http.HandleFunc("/kurjun/rest/auth/validate", auth.Validate)

http.HandleFunc("/kurjun/rest/healthcheck", healthcheck)
http.HandleFunc("/kurjun/rest/share", upload.Share)
http.HandleFunc("/kurjun/rest/quota", upload.Quota)
http.HandleFunc("/kurjun/rest/about", about)
Expand Down Expand Up @@ -145,6 +146,9 @@ func singleJoiningSlash(a, b string) string {
return a + b
}

func healthcheck(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
}
func runMain() {
// start the stop channel
stop = make(chan bool)
Expand Down

0 comments on commit e2eb2ec

Please sign in to comment.