about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-19 17:31:54 +0200
committerEmile <hanemile@protonmail.com>2019-10-19 17:31:54 +0200
commit40e6cd24817dde881f57a239145e00db5aa4a045 (patch)
tree2eff3c2d59e50d691dec69ebe74a3fa992987764 /src
parenta088c2b56cf56dccd9e4bf3ec55cd23391ba298f (diff)
function comment
Diffstat (limited to 'src')
-rw-r--r--src/http.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http.go b/src/http.go
index e08ed68..00f26a4 100644
--- a/src/http.go
+++ b/src/http.go
@@ -50,6 +50,7 @@ func createPostHandler(w http.ResponseWriter, r *http.Request) {
 	log.Println("create POST")
 }
 
+// viewGetHandler returns a list of all challenges in the database
 func viewGetHandler(w http.ResponseWriter, r *http.Request) {
 	// get all challenges from the db
 	challs := getAllChallenges(db)