diff options
| author | Jeff Carr <[email protected]> | 2024-09-09 10:25:03 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-09-09 10:25:03 -0500 |
| commit | fa6dce4c566b35b36155504ad9a627961dbfe3f6 (patch) | |
| tree | 40c62879d6649e1de96879e1fb02aef252d4fda4 | |
| parent | 8d12780c4e680dbb7872a52e7421cc3fa78021f3 (diff) | |
add /uptime to return "OK" for monitoring
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | main.go | 5 | ||||
| -rw-r--r-- | resources/repomap | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -96,6 +96,11 @@ func okHandler(w http.ResponseWriter, r *http.Request) { writeFile(w, "skeleton.v2.css") return } + // used for uptime monitor checking + if tmp == "/uptime" { + fmt.Fprintln(w, "OK") + return + } log.Warn("BAD URL =", url, "REPO URL =", repourl) badurl(w, r.URL.String()) // fmt.Fprintln(w, "BAD", tmp) diff --git a/resources/repomap b/resources/repomap index 370bf1f..10b1a33 100644 --- a/resources/repomap +++ b/resources/repomap @@ -57,3 +57,5 @@ go.wit.com/dev/alexflint/scalar git.wit.org/jcarr/go-scalar go.wit.com/dev/andlabs/ui git.wit.org/interesting/andlabs-ui attempts to add RiscV support go.wit.com/dev/andlabs/libui git.wit.org/interesting/libui go.wit.com/dev/davecgh/spew git.wit.org/jcarr/go-spew + +go.wit.com/dev/test/gogit2 git.wit.org/jcarr/gogit2 |
