Skip to content

Commit

Permalink
feat: add a ping endpoint that doesn't create a session
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed Sep 9, 2022
1 parent 7d0d036 commit 731a696
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/server.go
Expand Up @@ -140,6 +140,9 @@ func setupMisc(r *mux.Router, ctrl *ctrlbase.Controller) {
restScan := ctrl.Path(fmt.Sprintf("/rest/startScan.view?%s", r.URL.Query().Encode()))
http.Redirect(w, r, restScan, http.StatusSeeOther)
})
r.HandleFunc("/ping", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "OK")
})
}

func setupAdmin(r *mux.Router, ctrl *ctrladmin.Controller) {
Expand Down

0 comments on commit 731a696

Please sign in to comment.