diff options
author | Emile <hanemile@protonmail.com> | 2019-10-20 01:00:45 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-20 01:00:45 +0200 |
commit | 6456dc1724904a8c57747334b9a35387a5d666d9 (patch) | |
tree | 10f93f50f39540e0ac25e80f840345bbf7d05845 | |
parent | f39402fab1eea440d76c1338c9256cf0305f3e43 (diff) |
redirect after creating a challenge
-rw-r--r-- | src/http.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |