From 6456dc1724904a8c57747334b9a35387a5d666d9 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 20 Oct 2019 01:00:45 +0200 Subject: redirect after creating a challenge --- src/http.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/http.go') diff --git a/src/http.go b/src/http.go index d3dd15a..4df6944 100644 --- a/src/http.go +++ b/src/http.go @@ -91,6 +91,7 @@ func createPostHandler(w http.ResponseWriter, r *http.Request) { return } log.Printf("Create a new challenge. UUID: %s", uuid) + http.Redirect(w, r, "/view", http.StatusSeeOther) } // viewGetHandler returns a list of all challenges in the database -- cgit 1.4.1