diff options
| author | Jeff Carr <[email protected]> | 2024-02-13 16:14:22 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-13 16:14:22 -0600 |
| commit | 355234774df949852450d50285bddbd2a7f6e3ac (patch) | |
| tree | 4b1e5494ecdbad68211be615c4fabc6dc1184bdc /main.go | |
| parent | 270a08696391c6f80a58ac5d2ed6765ddb7869ba (diff) | |
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -71,6 +71,15 @@ func okHandler(w http.ResponseWriter, r *http.Request) { if tmp == "/update" { return } + if tmp == "/register" { + regfile, _ := os.OpenFile("/home/jcarr/regfile.log", os.O_RDWR|os.O_CREATE|os.O_APPEND, 0666) + if registerClient(regfile, r) { + fmt.Fprintln(w, "OK") + } else { + fmt.Fprintln(w, "FAILED") + } + return + } if tmp == "/list" { findFile(w, "files/repomap") return |
