about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-03-22 15:49:17 +0100
committerEmile <hanemile@protonmail.com>2020-03-22 15:49:17 +0100
commit6a29ca400cd3c2a4be269f7016261eb19dc5d968 (patch)
tree51a9603e61260124b27eb66ddf102a30ae33a8c4
parent9a8f949de3c85d38109738f7bdc787dfa39f190f (diff)
updated comments
-rw-r--r--src/http/http.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/http.go b/src/http/http.go
index bca2d79..5b25575 100644
--- a/src/http/http.go
+++ b/src/http/http.go
@@ -23,8 +23,10 @@ func Server() {
 	fs := http.FileServer(http.Dir("./hosted/assets"))
 	assets.PathPrefix("/").Handler(http.StripPrefix("/assets/", fs))
 
+	// download / view handlers
 	r.HandleFunc("/download", downloadHandler).Methods("GET")
 
+	// index (path) handler
 	t := r.PathPrefix("/").Subrouter()
 	t.PathPrefix("/").HandlerFunc(pathHandler)