Skip to content

Commit

Permalink
Merge pull request #355 from subutai-io/sysnet
Browse files Browse the repository at this point in the history
Sysnet
  • Loading branch information
crioto authored May 4, 2018
2 parents de3197a + 2575a8f commit 752fc24
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 752fc24

Please sign in to comment.