about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-20 01:00:45 +0200
committerEmile <hanemile@protonmail.com>2019-10-20 01:00:45 +0200
commit6456dc1724904a8c57747334b9a35387a5d666d9 (patch)
tree10f93f50f39540e0ac25e80f840345bbf7d05845
parentf39402fab1eea440d76c1338c9256cf0305f3e43 (diff)
redirect after creating a challenge
-rw-r--r--src/http.go1
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