Skip to content

Commit

Permalink
Merge pull request #69 from fly-apps/commands-through-http
Browse files Browse the repository at this point in the history
commands through http
  • Loading branch information
rugwirobaker authored Apr 12, 2022
2 parents 27e583e + 116bcdf commit 6238bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/commands/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/fly-examples/postgres-ha/pkg/util"
)

func handleFailover(w http.ResponseWriter, r *http.Request) {
func handleFailoverTrigger(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()

env, err := util.BuildEnv()
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func Handler() http.Handler {

r.Route("/admin", func(r chi.Router) {
r.Get("/role", handleRole)
r.Get("/failover", handleFailover)
r.Get("/failover/trigger", handleFailoverTrigger)
r.Get("/restart", handleRestart)
r.Get("/settings/view", handleViewSettings)

Expand Down

0 comments on commit 6238bae

Please sign in to comment.