diff options
author | Emile <hanemile@protonmail.com> | 2019-10-19 17:31:54 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-19 17:31:54 +0200 |
commit | 40e6cd24817dde881f57a239145e00db5aa4a045 (patch) | |
tree | 2eff3c2d59e50d691dec69ebe74a3fa992987764 | |
parent | a088c2b56cf56dccd9e4bf3ec55cd23391ba298f (diff) |
function comment
-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 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) |